(9.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (6.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('0') ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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)  (0.2ms) SELECT version FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (3.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('0') ActiveRecord::SchemaMigration Load (0.2ms) 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 ----------------------------------------------------------------------------  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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) ActiveRecord::SchemaMigration Load (19.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (26.3ms) 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  (16.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.9ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.5ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.1ms) 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  (12.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (6.8ms) CREATE 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  (9.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (6.6ms) 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  (9.5ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (9.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (9.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (7.5ms) CREATE 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  (11.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (14.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (6.9ms) 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  (13.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (14.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (9.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (10.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (7.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (10.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) 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 60ms (Views: 0.3ms | ActiveRecord: 19.5ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-02 15:23:55') SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-02 15:23:55') SQL (0.2ms) 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')  (9.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (1.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-02 15:23:55')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-02 15:23:55') SQL (0.1ms) INSERT 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')  (8.9ms) COMMIT  (0.2ms) BEGIN SQL (7.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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-02 15:23:55')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (1.0ms) 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 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC SQL (1.7ms) 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  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (6.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-02 15:23:55') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-02 15:23:55')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (0.8ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.3ms) 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` = 2 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-02 15:23:55')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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-02 15:23:55')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-02 15:23:55') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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-02 15:23:55')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.1ms) BEGIN  (1.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-02 15:23:55') SQL (0.7ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-02 15:23:55')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-02 15:23:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-02 15:23:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-02 15:23:55') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-02 15:23:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-02 15:23:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-02 15:23:55') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ---------------------------------------------------------------------------- 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-02 15:23:55') SQL (0.2ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'c47decc766bb24ae134368ac292db812', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-02 15:23:55')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (6.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (6.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.9ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:55' WHERE `dispatched_services`.`id` = 4  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (1.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-02 15:23:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-02 15:23:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd5f4943320a9966cec83d8e111a6b6b5', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-02 15:23:58')  (5.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.3ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 5  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-02 15:23:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-02 15:23:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-02 15:23:58' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 41ms (Views: 12.5ms | ActiveRecord: 5.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-02 15:23:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (102.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-02 15:23:58') SQL (0.2ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-02 15:23:58') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '726311b80922471ca9ed6716ee5b5000', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-02 15:23:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-02 15:23:58') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-02 15:23:58') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'd6db81d2794f4a1104c709ec2b31bc54', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-02 15:23:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.3ms) 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` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-02 15:23:58') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.5ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 48ms (Views: 17.1ms | ActiveRecord: 6.0ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-02 15:23:58') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.8ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (5.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-02 15:23:59') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-02 15:23:59') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-02 15:23:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-02 15:23:59') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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-02 15:23:59')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-02 15:23:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-02 15:23:59') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-02 15:23:59') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fa5126a41e2404b2d35fb56803642422', '06d451b80bf9fe3ce6849a48c98522d7', 26, 'info:sid/google', '0.0.0.0', '2016-08-02 15:23:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 26 LIMIT 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-02 15:23:59') SQL (0.1ms) 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, 27, '2016-08-02 15:23:59') SQL (0.1ms) 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')  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-02 15:23:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-02 15:23:59') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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-02 15:23:59') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (7.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (75.6ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (34.9ms) 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  (13.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.7ms) CREATE 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  (11.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.1ms) 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  (10.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.7ms) CREATE 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  (11.5ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (12.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (15.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (14.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.1ms) CREATE 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  (11.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.3ms) 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  (12.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (1.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) ROLLBACK Request Load (6.6ms) SELECT `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  (0.1ms) BEGIN SQL (12.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:31:05') SQL (0.3ms) INSERT 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')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.9ms) COMMIT ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:31:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:31:05') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:31:05') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:31:05') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:31:05') SQL (0.2ms) INSERT 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')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (5.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.2ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (2.5ms) 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 (0.5ms) Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.7ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 14:31:06') SQL (0.2ms) 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:06') SQL (0.2ms) 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') SQL (0.2ms) 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:06')  (11.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.6ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:31:06') SQL (0.1ms) 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') SQL (0.1ms) 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:06') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '483783ac7302061090dae832caebc96f', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 14:31:06')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.6ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:06' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 43ms (Views: 12.4ms | ActiveRecord: 6.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:31:06') SQL (0.2ms) 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') SQL (0.2ms) 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:06')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (1.4ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:31:06') SQL (0.1ms) INSERT 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')  (8.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (1.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:31:06') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '55d72dce5b5794ee4b3ca02ec8d7c754', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 14:31:06')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:31:06') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:31:06') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f01d96c39e0366de56dcb3d9b6740ac3', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:31:06')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.7ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:31:06') SQL (0.2ms) 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:06')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 51ms (Views: 17.6ms | ActiveRecord: 6.2ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:31:06') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:31:06') SQL (0.2ms) 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:06') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.4ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:31:06') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:31:06') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 14:31:06') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'dec0156e319335f4c605250471418990', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:06')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:31:06') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c3f07002a32b96ddfb7436a1db48a0fc', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:06')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 ServiceResponse Exists (0.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:31:06') SQL (0.1ms) 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 14:31:06') SQL (0.1ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:31:06') SQL (0.1ms) 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')  (12.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:31:06') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 21  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:31:06')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:31:06') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:06')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 DispatchedService Load (0.8ms) 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 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:31:06') SQL (0.1ms) 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:06')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:06')  (0.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) 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' Request Load (0.9ms) 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 DispatchedService Load (0.5ms) 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  (1.3ms) BEGIN  (1.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:06') SQL (0.8ms) 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` = 17 SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:31:06')  (0.9ms) COMMIT SQL (0.4ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.2ms) BEGIN  (1.7ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:07')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:07') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:31:07') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:07')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN  (1.7ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:07') SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:31:07') SQL (0.9ms) 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:07' WHERE `dispatched_services`.`id` = 18 SQL (0.8ms) 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')  (0.7ms) COMMIT  (0.3ms) COMMIT  (0.7ms) BEGIN  (0.1ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30 SQL (0.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.9ms) COMMIT  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:07') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:31:07') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:31:07')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (13.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.8ms) 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  (9.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (9.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (9.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.4ms) CREATE 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  (9.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.1ms) 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  (8.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.2ms) CREATE 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  (9.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (10.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (7.4ms) 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  (10.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (9.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (10.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (10.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (10.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (10.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (7.7ms) CREATE 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  (9.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (10.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (10.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (7.1ms) 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  (9.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (10.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (8.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (9.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (7.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (9.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (35.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (11.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:31:33') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:31:33') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:31:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:31:33') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:31:33') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (15.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (3.3ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:31:33') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 DispatchedService Load (0.5ms) 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) Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 14:31:33') SQL (0.2ms) 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') SQL (0.2ms) 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:33') SQL (0.2ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8fc534ace149882cc6429be3c5625b3d', 'a03fb1fb17f24f5ea845bf6c4450490b', 6, '127.0.0.1', '2016-08-23 14:31:33')  (11.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (5.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.3ms) 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 SQL (5.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:33' WHERE `dispatched_services`.`id` = 2  (5.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:31:33') SQL (0.2ms) 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:33') SQL (0.2ms) 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') SQL (0.2ms) 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:33')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.3ms) 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 SQL (6.1ms) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:31:33' WHERE `dispatched_services`.`id` = 3  (12.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.7ms) 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.5ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 95ms (Views: 23.5ms | ActiveRecord: 19.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.3ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:31:33') SQL (0.5ms) 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:33') SQL (0.3ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.2ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:31:33') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (5.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.6ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.6ms) BEGIN SQL (0.3ms) 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  (11.6ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (3.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:31:34') SQL (0.2ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b9734c7f2a9c2f863f46cb3b7ffd9b0a', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 14:31:34')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (5.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (6.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.8ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:31:34') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:31:34') SQL (0.1ms) 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:34')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:31:34') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '313db49b00d75233edc9f17643ea220d', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 14:31:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (1.3ms) 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) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 62ms (Views: 21.7ms | ActiveRecord: 7.3ms) Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:31:34') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:31:34')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:31:34') SQL (0.2ms) 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') SQL (0.1ms) 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:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:31:34') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:31:34') SQL (0.1ms) 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 14:31:34') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:34') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:31:34') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 18 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 14:31:34') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f99eab1267ff7a19aa8fd0c80961cbfb', 'd95884a882a64501650fb8f9deae5104', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 14:31:34')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:31:34') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:31:34') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 14:31:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:31:34') SQL (0.1ms) 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:34')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 14:31:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:31:34') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:31:34') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 DispatchedService Load (0.7ms) 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 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (1.7ms) BEGIN SQL (0.2ms) 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` = 17  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:31:34') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:31:34')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.7ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:31:34')  (0.9ms) COMMIT SQL (0.4ms) 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:34')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.8ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:31:34')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:31:34') SQL (0.2ms) 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:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:31:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (1.0ms) 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 DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN  (1.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:31:34') SQL (0.8ms) 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` = 19 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:31:34')  (0.9ms) COMMIT SQL (0.4ms) 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')  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:31:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.7ms) 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  (14.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.4ms) CREATE 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  (11.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.0ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (14.8ms) CREATE 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  (12.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.1ms) 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  (11.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (17.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.0ms) CREATE 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  (12.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.2ms) 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  (11.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.3ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:32:44') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:32:44') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:32:44') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 14:32:44')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:32:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:32:44') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 4, 'test_holding', 'holding', '2016-08-23 14:32:44')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:32:44') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ---------------------------------------------------------------------------- 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:32:44') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f357dd8361576f01e178b29eddb3133c', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 14:32:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 6  (1.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 DispatchedService Load (0.2ms) 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 (3.0ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:32:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 14:32:44') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.5ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 7  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:32:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:32:44') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'adcdf0ca647d79b168bd6783456ee740', 'bc13b80c2923ce2cbe0c8347141587a7', 8, '127.0.0.1', '2016-08-23 14:32:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.8ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:32:44' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.2ms)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 44ms (Views: 12.6ms | ActiveRecord: 6.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:32:44') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.4ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:32:44') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:32:44') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '90d3bc431ad9298b46e2e6c66f78e47f', '9902a1d22a141a826ae31b1c83cb928c', 11, '127.0.0.1', '2016-08-23 14:32:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.7ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.5ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:32:44') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (5.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.2ms)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:32:45') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '114d6e71f861b1ef60ff1f9820bbbb6c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 14:32:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 13  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:32:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 55ms (Views: 17.4ms | ActiveRecord: 8.5ms)  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:32:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:32:45') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:32:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:32:45') SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:32:45') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 14:32:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:32:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:32:45')  (0.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:32:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:32:45')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.6ms) 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 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.6ms) BEGIN ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC SQL (2.0ms) 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` = 15  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.5ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:32:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:32:45')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.1ms) 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' Request Load (0.7ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.1ms) BEGIN  (1.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.8ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:32:45')  (5.0ms) COMMIT SQL (0.5ms) INSERT 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')  (0.9ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.1ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 14:32:45')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:32:45') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:32:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.1ms) 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.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' Request Load (0.7ms) 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 DispatchedService Load (0.4ms) 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  (1.1ms) BEGIN  (1.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:32:45') SQL (0.7ms) 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` = 17 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:32:45')  (0.9ms) COMMIT SQL (0.4ms) 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')  (14.4ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:32:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:32:45') SQL (0.2ms) 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:32:45') SQL (0.2ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) 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:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:32:45') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:32:45') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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:32:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:32:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 14:32:45') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4a56f81d5bf9b9d6b305cce91bb4c928', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 14:32:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (2.5ms) DROP TABLE `clickthroughs`  (9.3ms) 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  (19.3ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)   (15.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)  (16.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)   (1.6ms) DROP TABLE `dispatched_services`  (10.1ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (1.5ms) DROP TABLE `permalinks`  (9.6ms) 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  (13.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)   (6.1ms) DROP TABLE `referent_values`  (7.8ms) CREATE 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  (10.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (2.1ms) DROP TABLE `referents`  (12.9ms) 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  (10.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)  (13.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)   (13.3ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)  (10.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)   (11.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)  (15.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)   (1.8ms) DROP TABLE `requests`  (10.8ms) CREATE 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  (9.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (2.0ms) DROP TABLE `service_responses`  (8.9ms) 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  (10.2ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)   (10.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)  (1.6ms) DROP TABLE `sessions`  (9.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (13.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (1.8ms) DROP TABLE `sfx_urls`  (12.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (14.6ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)   (0.2ms) SELECT version FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) 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'  (0.1ms) SHOW CREATE TABLE `clickthroughs`  (0.2ms) 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'  (0.1ms) SHOW CREATE TABLE `dispatched_services`  (0.1ms) 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'  (0.1ms) SHOW CREATE TABLE `permalinks`  (0.1ms) 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'  (0.1ms) SHOW CREATE TABLE `referent_values`  (0.1ms) 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'  (0.1ms) SHOW CREATE TABLE `referents`  (0.1ms) 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'  (0.1ms) SHOW CREATE TABLE `requests`  (0.2ms) 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'  (0.1ms) SHOW CREATE TABLE `service_responses`  (0.2ms) 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'  (0.1ms) SHOW CREATE TABLE `sessions`  (0.2ms) 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'  (0.1ms) SHOW CREATE TABLE `sfx_urls` ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.2ms) 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  (13.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (10.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.2ms) CREATE 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  (11.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.1ms) 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  (11.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.0ms) CREATE 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  (10.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.6ms) 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  (9.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (17.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.1ms) CREATE 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  (32.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.5ms) 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  (10.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:38:24') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:38:24') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:38:24') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 14:38:24')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:38:24') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:38:24') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:38:24') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:38:24') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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:38:24 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:38:24') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '920b5869e95545676104d84cfcc893c0', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 14:38:24')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:24' WHERE `dispatched_services`.`id` = 4  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (4.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 DispatchedService Load (0.5ms) 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 (2.8ms) Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (2.9ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:38:24') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:38:24') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.3ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:38:24' WHERE `dispatched_services`.`id` = 5  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:38:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:38:25') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0c56ba49db1d9046e4d5e2c09e099f40', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 14:38:25')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:38:25' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.2ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 53ms (Views: 20.4ms | ActiveRecord: 5.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 14:38:25') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.3ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:38:25') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bd9eb41e90e8d1f29590b3fce3d648e3', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:38:25')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 8  (0.4ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:38:25') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.6ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:38:25') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a225bf986c5ae08254d09a43d6124539', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 14:38:25')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 10  (0.7ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (2.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:38:25') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.7ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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 (1.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (1.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:38:25') SQL (0.1ms) 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')  (4.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '87f5a517246f1ce3682c75b12fb19550', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:38:25')  (0.3ms) COMMIT  (1.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 12  (0.5ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.7ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 61ms (Views: 16.7ms | ActiveRecord: 13.1ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:38:25') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.4ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:38:25') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:38:25') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 19  (0.1ms) BEGIN SQL (0.2ms) 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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:38:25')  (0.2ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.1ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:38:25') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:38:25')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.6ms) 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 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.5ms) BEGIN ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC SQL (1.4ms) 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  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:38:25') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (3.8ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:38:25')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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' Request Load (0.7ms) 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 DispatchedService Load (0.3ms) 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  (1.0ms) BEGIN  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.7ms) 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` = 15 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:38:25')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.6ms) BEGIN  (1.0ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:38:25')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:38:25') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:38:25')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.3ms) SELECT `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 DispatchedService Load (0.3ms) 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  (1.1ms) BEGIN  (2.2ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:38:25') SQL (0.7ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:38:25')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:38:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:38:25') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:38:25')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:38:25') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:38:25') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:38:25') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6d6da82876f53caa92ed5b27e78d1cc4', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 14:38:25')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:38:25') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 14:38:25') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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:38:25') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (18.5ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.4ms) 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  (15.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (11.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.7ms) CREATE 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  (12.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.5ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.6ms) CREATE 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  (13.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.0ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.2ms) 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  (11.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.3ms) CREATE 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  (12.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (20.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (21.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (14.3ms) 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  (15.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (18.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (21.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (17.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (13.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (13.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (12.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (19.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.3ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:44:13') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:44:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 14:44:13') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 14:44:13')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 2  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:44:13') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6bc659916e9a3ee0219fb36a8a0ea130', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 14:44:13')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:44:13' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 44ms (Views: 13.4ms | ActiveRecord: 6.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 14:44:13') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (1.5ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:44:13') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '0f93ae39a18060bb9d5dcdf21b3a0f81', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 14:44:13')  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 5  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.7ms) 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:44:13') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:44:13') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', '23133fbdcba7c23f8f2356896137bd8b', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 14:44:13')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 7  (0.4ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:44:13') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (1.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:44:13') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:44:13') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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 14:44:13')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:44:13') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:44:13')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:44:13') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:44:13')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 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' ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (1.9ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:13' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:44:13') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:44:13')  (0.7ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.4ms) 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  (5.3ms) BEGIN  (2.1ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14') SQL (0.7ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:44:14')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 14:44:14')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:44:14') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:44:14')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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 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 ---------------------------------------------------------------------------- Request Load (0.3ms) 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 DispatchedService Load (0.4ms) 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  (1.3ms) BEGIN  (1.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:44:14') SQL (0.7ms) 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` = 12 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:44:14')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.8ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 14:44:14')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:44:14') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:44:14') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:44:14')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:44:14') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:44:14')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:44:14') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 14:44:14') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b004570f1554813b9cecb36ea885e0a5', 'd95884a882a64501650fb8f9deae5104', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 14:44:14')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:44:14') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.3ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6d957c1ed0ec6c6d496eb841825bf42d', '06d451b80bf9fe3ce6849a48c98522d7', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 14:44:14')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 21 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:44:14') SQL (0.1ms) 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, 22, '2016-08-23 14:44:14') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:44:14') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (1.4ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:44:14') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:44:14') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:44:14') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:44:14') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:44:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:44:14') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.4ms) 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  (15.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (10.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.8ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (13.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.5ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.1ms) CREATE 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  (12.1ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.3ms) 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  (11.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:46:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 1, '2016-08-23 14:46:26') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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, 1, '2016-08-23 14:46:26') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (1.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:46:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:46:26') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:46:26') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:46:26') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:46:26') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:46:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:46:26') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:46:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:46:26') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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:46:26 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:46:26') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '21018399f3b6a5ad49907dc8abc02667', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 14:46:26')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.8ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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://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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 DispatchedService Load (0.5ms) 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 (2.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 14:46:27') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 4  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:46:27') SQL (0.2ms) 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') SQL (0.4ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4689b1cf1aabeee02cb407081e09ea8c', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 14:46:27')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:46:27' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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.5ms) DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.6ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 48ms (Views: 16.4ms | ActiveRecord: 6.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 14:46:27') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.6ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:46:27') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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', '0a34fe8dce85ba6554cd834a05f622cc', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:46:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:46:27') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:46:27') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '222a71ff1f93b2d5fbd4a441510d709d', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 14:46:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:46:27') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:46:27') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'dfe3730c5356549ccd2266b25131f0fc', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:46:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:46:27') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:46:27') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (1.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:46:27') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:46:27')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:46:27') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:46:27')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:46:27') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:46:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) 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.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:46:27') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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 14:46:27')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:46:27') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:46:27')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:46:27') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:46:27')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (1.4ms) 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://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' ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.6ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 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  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:46:27') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:46:27')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.3ms) 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  (1.9ms) BEGIN  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.7ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:46:27')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (1.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:46:27')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:46:27') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:46:27')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (0.9ms) 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 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.7ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:46:27') SQL (0.8ms) 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` = 19 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:46:27')  (0.9ms) COMMIT SQL (0.4ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:46:27')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.5ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.1ms) 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  (9.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.1ms) CREATE 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  (11.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.7ms) 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  (13.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.5ms) CREATE 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  (10.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.3ms) 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  (11.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (12.9ms) CREATE 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  (11.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.7ms) 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  (11.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:47:08') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:47:08') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:47:08') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:47:08') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:47:08') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'test_holding', 'holding', '2016-08-23 14:47:08')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.8ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ----------------------------------------------------------------- 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:47:08') SQL (0.1ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 5  (0.1ms) BEGIN SQL (0.2ms) 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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:47:08')  (6.1ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:47:08') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:47:08')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:47:08') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:47:08')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.1ms) 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) DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 ServiceResponse Load (0.2ms) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:47:09' WHERE `dispatched_services`.`id` = 5  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:47:09') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:47:09')  (0.9ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:47:09') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:47:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:47:09') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (12.0ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:47:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.1ms) SELECT `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 DispatchedService Load (0.4ms) 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  (2.1ms) BEGIN  (1.7ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:47:09') SQL (0.8ms) 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 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:47:09')  (0.8ms) COMMIT SQL (0.3ms) INSERT 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')  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.8ms) BEGIN  (1.8ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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-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"} Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:47:09') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f979d0b496e18f2efd052702928c9d9a', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 14:47:09')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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://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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 DispatchedService Load (0.4ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (1.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:47:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 14:47:10') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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:47:10')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 9  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:47:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:47:10') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'fca0ef11aece949a60fb23e5cbfdaecc', 'bc13b80c2923ce2cbe0c8347141587a7', 14, '127.0.0.1', '2016-08-23 14:47:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:47:10' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 49ms (Views: 16.5ms | ActiveRecord: 6.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) 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  (3.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:47:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 14:47:10') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:47:10') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a09914fc545704dd9d1abea4ff175d0c', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:47:10')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (1.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:47:10' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (7.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (1.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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 (1.0ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.7ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:47:11') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:47:11') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (2.7ms) 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 (3.4ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (1.5ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:11') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:47:11') SQL (0.1ms) INSERT 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')  (6.1ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (1.0ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.8ms) 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  (0.6ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:47:12') SQL (0.1ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '34e438d3a70dd3ca8d6b75eb17c8a228', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 14:47:12')  (4.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (1.0ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (1.2ms) 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:13' WHERE `dispatched_services`.`id` = 15  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.6ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:47:13') SQL (0.2ms) 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')  (12.1ms) COMMIT  (1.1ms) BEGIN SQL (0.2ms) 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', '08825808718121e1a526701f6397fad2', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:47:13')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:14' WHERE `dispatched_services`.`id` = 16  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 732ms (Views: 16.0ms | ActiveRecord: 19.8ms) Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:47:14') SQL (0.2ms) INSERT 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')  (12.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:47:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:47:14') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:47:14' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:47:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:47:14') SQL (0.2ms) 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')  (11.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:47:15') SQL (0.2ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.9ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) 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: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  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:47:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:47:15') SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:47:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2016-08-23 14:47:16') SQL (0.7ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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, 26, '2016-08-23 14:47:16') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (10.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.8ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.9ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) 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:47:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:47:16') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:47:16') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:47:16')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:47:16') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (20.8ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (12.1ms) 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  (12.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.9ms) CREATE 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  (14.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.5ms) 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  (10.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.1ms) CREATE 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  (10.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (10.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.2ms) 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  (10.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.4ms) CREATE 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  (10.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (10.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) 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 24ms (Views: 0.3ms | ActiveRecord: 2.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:48:04') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:48:05') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:48:05')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:48:05') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:48:05')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:48:05') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 14:48:05')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Redirected to http://example.org Completed 302 Found in 15ms (ActiveRecord: 4.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) 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  (1.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.7ms) 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 14:48:05')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:48:05') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:48:05')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (7.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 20ms (Views: 0.3ms | ActiveRecord: 9.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (3.0ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (7.4ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:48:05') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:48:05') SQL (0.1ms) 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') SQL (2.0ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a061a85aa60487b37c73c06abfffaf8f', '06d451b80bf9fe3ce6849a48c98522d7', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 14:48:05')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 10 LIMIT 1 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (2.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:48:05') SQL (0.1ms) 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, 11, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 14:48:05') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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 14:48:05') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:48:05') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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: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  (0.5ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.6ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:48:05') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:48:05' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:48:05') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:48:05') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (1.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) 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  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:48:05') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:48:05') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:48:05') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:48:05')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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:48:05 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:48:05') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '16ef4b93eb289dd73a869974967907e7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 14:48:05')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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://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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (1.4ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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' DispatchedService Load (1.2ms) 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  (1.1ms) BEGIN SQL (1.1ms) 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` = 2  (1.6ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.8ms) BEGIN SQL (1.7ms) 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')  (1.1ms) 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' DispatchedService Load (0.4ms) 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  (0.4ms) BEGIN SQL (0.4ms) 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  (0.6ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.5ms) BEGIN SQL (0.4ms) INSERT 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')  (0.5ms) COMMIT Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:48:05') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 14:48:05') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b00b8fbf66ebf94fc5ff4a9a115f1096', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 14:48:05')  (4.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:48:05' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.6ms) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.5ms) 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.1ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:48:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:48:06') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.5ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:48:06' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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.4ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 41ms (Views: 12.1ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 14:48:06') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:48:06') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'fe76fd5fd5c29773fcb6b00cdbe99477', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 14:48:06')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:48:06') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (1.0ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 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/.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:48:06') SQL (0.2ms) 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')  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '696deb76cbcd43c9a0796c57a5ae0448', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 14:48:06')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 21  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:48:06') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.4ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (12.1ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:48:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:48:06') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '265a6c9e26020b40015160f192d2b14e', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 14:48:06')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 23  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 53ms (Views: 15.7ms | ActiveRecord: 7.4ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.5ms) 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  (16.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (16.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.8ms) CREATE 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  (12.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.9ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.8ms) CREATE 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  (11.5ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.1ms) 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  (11.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (11.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (14.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (11.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.7ms) 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  (11.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:50:44') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:50:44') SQL (0.2ms) INSERT 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')  (2.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 1, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 14:50:51')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:50:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:50:51') SQL (1.1ms) 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')  (14.7ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 14:51:01') SQL (0.2ms) INSERT 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')  (18.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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: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  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:51:02') SQL (0.1ms) 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')  (9.2ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (1.0ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:51:06') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (7.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:51:06') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:51:06') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:51:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 14:51:06') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '443961adea721aba50d93b345e738914', 'd95884a882a64501650fb8f9deae5104', 8, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:06')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:51:06') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 14:51:06') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '27a9481754496eec1f5bd397de9eee8f', '06d451b80bf9fe3ce6849a48c98522d7', 9, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:06')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:51:06') SQL (0.2ms) 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, 10, '2016-08-23 14:51:06') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:51:06') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:06') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:51:06') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 DispatchedService Load (0.5ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:51:07') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 14:51:07') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '54403fc134feff0a9b072de9be828ab9', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-23 14:51:07')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:07' WHERE `dispatched_services`.`id` = 12  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.5ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:07') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:51:07') SQL (2.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:07' WHERE `dispatched_services`.`id` = 13  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (11.6ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 45ms (Views: 12.7ms | ActiveRecord: 8.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:07') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 14:51:07') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:07') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:51:07') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '3100c582912a4789824eb0b30ca30bfd', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 14:51:07')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:12' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.3ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:12' WHERE `dispatched_services`.`id` = 15  (12.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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')  (5.1ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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-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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:51:13') SQL (0.2ms) 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')  (12.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '57950459764bbf2214e266ec42705901', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-23 14:51:13')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:18' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:51:18') SQL (0.1ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '43384633cd029b3b3a2bcbd12c6737c7', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 14:51:18')  (4.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:22' WHERE `dispatched_services`.`id` = 17  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 [["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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:22' WHERE `dispatched_services`.`id` = 17  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:51:22')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:26' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000415\n' WHERE `service_responses`.`id` = 26  (0.2ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:51:26') SQL (0.1ms) 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')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f82d2f4c04583175b1c51719d2564835', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 14:51:26')  (10.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (1.9ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:30' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:51:30') SQL (0.1ms) INSERT 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')  (12.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:35')  (0.8ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:35' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.2ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.5ms) 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.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)  (0.3ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:35')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.3ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 40ms (Views: 22.2ms | ActiveRecord: 3.6ms)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.8ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 14:51:35') SQL (0.2ms) 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')  (12.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:51:35') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 14:51:35')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 14:51:35') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:51:35')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:51:35') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:51:35')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (0.2ms) 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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.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  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:39') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:51:39') SQL (0.2ms) 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')  (5.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (11.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:51:39')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:51:39') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:51:39')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:51:40') SQL (0.1ms) 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')  (0.4ms) COMMIT  (11.0ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:51:40')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.1ms) 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' Request Load (0.6ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.8ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:40') SQL (0.7ms) 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 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:51:40')  (0.9ms) COMMIT SQL (0.4ms) INSERT 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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%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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.6ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.6ms) 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  (11.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.6ms) CREATE 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  (11.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.4ms) 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  (11.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.8ms) CREATE 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  (10.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (10.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (7.3ms) 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  (10.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (33.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (15.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (19.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (20.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (22.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (17.4ms) CREATE 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  (15.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.3ms) 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  (11.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (12.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) 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:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (1.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 14:51:51') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 14:51:51') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c4237efedcb991ffdea72b37d8a34805', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 14:51:51')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 14:51:51') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ----------------------------------------------------------------- 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 5  (0.1ms) BEGIN SQL (0.2ms) 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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 14:51:51')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:51:51')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 14:51:51') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 14:51:51')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 DispatchedService Load (0.7ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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.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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8  (0.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 14:51:51') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 14:51:51')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.1ms) SELECT `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 DispatchedService Load (0.5ms) 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  (6.4ms) BEGIN  (2.1ms) BEGIN SQL (2.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.8ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 14:51:51')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:51:51')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 14:51:51') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:51:51')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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 19ms (Views: 0.4ms | ActiveRecord: 2.4ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 14:51:51') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.1ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 14:51:51') SQL (0.2ms) 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')  (0.4ms) COMMIT  (11.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 14:51:51')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 14:51:51') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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: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  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 14:51:51') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 14:51:51') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:51:51')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 14:51:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 14:51:51') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 14:51:51') SQL (0.2ms) INSERT 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')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (1.2ms) 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  (0.3ms) 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' DispatchedService Load (0.7ms) 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 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1  (3.2ms) BEGIN DispatchedService Load (0.4ms) 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.3ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 SQL (3.2ms) 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  (0.6ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.4ms) BEGIN 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) ServiceResponse Load (0.9ms) 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) DispatchedService Load (0.4ms) 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 (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) SQL (0.6ms) 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')  (23.2ms) COMMIT Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 14:51:52') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 14:51:52') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:51:52')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:52') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 14:51:52') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fb03d858fd999ef0d921213c363b6e65', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 14:51:52')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.2ms) 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) Permalink Load (0.3ms) 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 (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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 48ms (Views: 15.6ms | ActiveRecord: 6.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 14:51:52') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 14:51:52') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 14:51:52') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '33f41675d4b7009b539216be5eb7b24f', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 14:51:52')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 19  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:51:52')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:52' WHERE `dispatched_services`.`id` = 19  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35  (0.3ms) 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-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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.4ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 14:51:52') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 14:51:52') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '74385163bc75404cc5b1445fc133c3ef', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 14:51:52')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 20  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 25 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 14:51:52') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '8c526acd3c1b148e56fe25f8de14b8fd', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 14:51:52')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) Request Load (0.2ms) 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) DispatchedService Load (0.4ms) 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.1ms) Rendered /Users/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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) 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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `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  (0.3ms) 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"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 14:51:52') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '1d57550ef266553441d81383e3b468bd', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 14:51:52')  (0.2ms) COMMIT  (0.6ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 22  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.4ms) 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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 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) DispatchedService Load (0.2ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 14:51:52') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 14:51:52') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f2f55256c81b3f940928f67a37f242e0', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 14:51:52')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 14:51:52' WHERE `dispatched_services`.`id` = 23  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (4.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 34ms (Views: 16.9ms | ActiveRecord: 7.5ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.4ms) 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  (11.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.1ms) CREATE 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  (12.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.2ms) 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  (11.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.7ms) CREATE 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  (10.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.3ms) 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  (11.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (15.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (10.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (10.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (14.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.1ms) 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  (11.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.2ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:48:01') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (1.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.3ms) 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.4ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:48:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:48:04') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fbdc719f80c770247e3f30a863d11db3', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:48:04')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:04' WHERE `dispatched_services`.`id` = 2  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.4ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:48:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:48:04') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:04' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.6ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 53ms (Views: 17.0ms | ActiveRecord: 7.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:48:04') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:48:04') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.4ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:48:04') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:48:09')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:09' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.3ms)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:48:09' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:48:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 15:48:10' WHERE `dispatched_services`.`id` = 5  (1.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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) 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) DispatchedService Load (0.3ms) 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) Permalink Load (0.5ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:48:11') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:48:11') SQL (0.1ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '506af66e8898ccd9565d393924886b5c', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:48:11')  (5.2ms) COMMIT  (0.2ms) BEGIN  (0.3ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:15' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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 (3.1ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.3ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:48:15') SQL (0.1ms) 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')  (12.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'a22231719439cb6dd13615ae36226abd', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:48:15')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:19' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.5ms) Rendered /Users/barnabyalter/.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) Request Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (16.5ms) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:48:19' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:24' WHERE `dispatched_services`.`id` = 7  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 10  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:24') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:48:24') SQL (0.1ms) INSERT 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')  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (8.9ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:48:28')  (1.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:28' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.5ms) 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 (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) ServiceResponse Load (0.5ms) 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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:48:28') SQL (0.1ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '5b7f26061ca8ceb253f2175c977017e4', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:48:28')  (4.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:48:33' WHERE `dispatched_services`.`id` = 9  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (15.6ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 25ms (Views: 16.1ms | ActiveRecord: 3.2ms) Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (2.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:48:33') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '5debfed76b2d873481fe5b7e32eada7a', '06d451b80bf9fe3ce6849a48c98522d7', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 15:48:33')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 10 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:48:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 15:48:33') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 11, '2016-08-23 15:48:33') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:48:33') SQL (0.1ms) 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, 12, '2016-08-23 15:48:33') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (2.4ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:48:33') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:48:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:48:33') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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 15:48:37')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:37') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:48:37') SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:48:38') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:48:38') SQL (0.2ms) INSERT 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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.9ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:48:42')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:48:42') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:48:42') SQL (0.1ms) 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')  (11.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.8ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:48:47') SQL (0.1ms) 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')  (5.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:48:47') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 27  (0.1ms) BEGIN SQL (0.1ms) 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 27\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:48:47')  (0.2ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.1ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:48:47') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:48:47')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:48:51') SQL (0.1ms) INSERT 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')  (5.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:48:51')  (4.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.5ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://example.org Completed 302 Found in 16ms (ActiveRecord: 2.6ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:48:51') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 15:48:51')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:48:51') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:48:51')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (6.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 22ms (Views: 0.3ms | ActiveRecord: 8.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:48:51') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.1ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:48:51') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (7.0ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:48:51') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:48:51') SQL (1.5ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:48:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:48:51') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (22.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.7ms) 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  (13.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.4ms) CREATE 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  (11.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.5ms) 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  (10.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.1ms) CREATE 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  (13.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.2ms) 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  (12.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (10.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.2ms) 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  (10.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.6ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:49:29') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:49:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:49:29') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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', 'e25876f194cea7b60f57dda99365c7f9', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:49:29')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 2  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.4ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:49:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:49:29') SQL (0.1ms) INSERT 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') SQL (0.6ms) 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') SQL (0.7ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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.4ms) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 60ms (Views: 14.3ms | ActiveRecord: 6.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:49:29') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:49:29') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.3ms) 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"} Request Load (0.6ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:49:29') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:49:29')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 5  (0.4ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) CACHE (0.0ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:49:29' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) 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:49:29')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 15:49:29' WHERE `dispatched_services`.`id` = 5  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.8ms) 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.5ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:49:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.6ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:49:30')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:49:30')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) CACHE (0.0ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:49:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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  (0.3ms) 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%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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:49:30')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.2ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:49:30') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '548d58a3f605806d059b78af62bb1906', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:49:30')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:49:30' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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) CACHE (0.0ms) 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) DispatchedService Load (3.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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 (16.9ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 26ms (Views: 17.8ms | ActiveRecord: 3.1ms) Request Load (0.9ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:49:30') SQL (0.3ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:49:30') SQL (0.2ms) 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, 11, '2016-08-23 15:49:30') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 15:49:30') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.6ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cb8635fd53f5483b69fbb8a91bdb6601', 'd95884a882a64501650fb8f9deae5104', 13, 'info:sid/google', '0.0.0.0', '2016-08-23 15:49:30')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.8ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:49:30') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:49:30')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:49:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:49:30' WHERE `dispatched_services`.`id` = 16  (0.7ms) COMMIT DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:49:30') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:49:30')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:49:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.1ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:49:30') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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 15:49:30')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:49:30')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.8ms) 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 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.6ms) BEGIN ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC SQL (1.7ms) 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  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:49:30') SQL (0.2ms) INSERT 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')  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:49:30')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) 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' Request Load (0.9ms) 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 DispatchedService Load (0.3ms) 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  (1.7ms) BEGIN  (1.8ms) BEGIN SQL (6.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.8ms) 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 15:49:30' WHERE `dispatched_services`.`id` = 22 SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:49:30')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39  (0.1ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:49:30')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:49:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) 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 15:49:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:49:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:49:30') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:49:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (21.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.1ms) 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  (9.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.8ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.6ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.7ms) CREATE 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  (10.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.5ms) 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  (11.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (16.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (45.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (11.3ms) CREATE 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  (11.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.6ms) 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  (15.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.4ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:52') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:50:52') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:52') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 15:50:52') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:50:53') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 3  (0.1ms) BEGIN SQL (0.1ms) 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 3\n', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 15:50:53') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 15:50:53')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) 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')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (2.2ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:50:53') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:50:53')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) 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' Request Load (0.9ms) 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 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.7ms) 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 15:50:53' WHERE `dispatched_services`.`id` = 3 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:50:53')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (2.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8  (0.6ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:50:53')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:50:53') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (1.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:50:53')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:50:53') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:50:53')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:50:53') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.9ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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.5ms) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 15:50:53') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '6e6f14547b479f072cb295948bf38162', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 15:50:53')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 6  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.2ms) 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 (17.2ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:50:53') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:53' WHERE `dispatched_services`.`id` = 7  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 DispatchedService Load (0.2ms) 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.2ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 47ms (Views: 17.9ms | ActiveRecord: 5.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:50:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 15:50:53') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (1.3ms) 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' DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 DispatchedService Load (1.5ms) 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 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1  (1.7ms) BEGIN DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 SQL (0.3ms) 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 15:50:54' WHERE `dispatched_services`.`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 (3.0ms)  (0.9ms) COMMIT Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1  (0.4ms) BEGIN ReferentValue Load (1.0ms) 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 (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) ServiceResponse Load (0.6ms) 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) SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12 Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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)  (1.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:50:54') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.5ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:50:54')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 9  (8.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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 15:50:54')  (5.9ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 15:50:54' WHERE `dispatched_services`.`id` = 9  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.2ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:50:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'aab7ffdc1224d4880f73a20943336658', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 15:50:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.4ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.3ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 10  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.5ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:50:54') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1999daa4c8e92217bfa52a7e724302a6', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 15:50:54')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 11  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) 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  (0.4ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.3ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:50:54')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 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.3ms) Rendered /Users/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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:50:54') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9f0bc7bef0dbdd5af62dd1eaa6fde67f', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 15:50:54')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:50:54' WHERE `dispatched_services`.`id` = 13  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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.7ms) ServiceResponse Load (0.3ms) 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) Request Load (0.3ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 15:50:54')  (0.4ms) COMMIT Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 27ms (Views: 16.9ms | ActiveRecord: 3.7ms) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:50:54') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:50:54')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:50:54') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 21, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 15:50:54')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:50:54') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 15:50:54')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:50:54') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:50:54') SQL (0.1ms) 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 15:50:54') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:50:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 27, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 15:50:54') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.5ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:50:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:50:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 28 LIMIT 1 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.6ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.3ms) 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  (11.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.1ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.8ms) 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  (11.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.7ms) CREATE 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  (13.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.3ms) 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  (11.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.3ms) CREATE 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  (11.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.6ms) 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  (11.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (9.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (10.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:56:44') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.6ms) 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.8ms) DispatchedService Load (3.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:56:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:56:44') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '532b259e522e50102f9a828ea8a3bc53', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:56:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 2  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:56:44') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:44' WHERE `dispatched_services`.`id` = 3  (0.5ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 60ms (Views: 28.2ms | ActiveRecord: 6.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:56:44') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.6ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:56:44') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.3ms)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:56:44') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (0.2ms) 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', '5e74a3bc2b1ec0aff084bb8dfbdd4b93', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 15:56:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.4ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 6  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.5ms) 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 (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) Permalink Load (0.4ms) 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)  (0.3ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:56:44') SQL (0.1ms) 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:44')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:56:44') SQL (0.4ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '65c52732249087851931182d8e3d23aa', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 15:56:44')  (0.7ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) 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` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:56:45') SQL (0.2ms) 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:45')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 51ms (Views: 15.2ms | ActiveRecord: 7.1ms) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:56:45') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:56:45') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:56:45') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:56:45') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:56:45') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:56:45') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) 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.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:56:45') SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 16  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:56:45') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 15:56:45')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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-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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:56:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:45')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.2ms) 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` = 12  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:56:45') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN[0m SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (2.0ms) SELECT `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 DispatchedService Load (0.3ms) 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  (1.1ms) BEGIN  (1.5ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.6ms) 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 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:56:45')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:56:45')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:56:45') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 15:56:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 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' Request Load (2.4ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.5ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:45') SQL (0.7ms) 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` = 14 SQL (0.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:56:45')  (0.7ms) COMMIT SQL (0.2ms) 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')  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:45')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:56:45') SQL (0.1ms) 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, 23, '2016-08-23 15:56:45') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 24, '2016-08-23 15:56:45') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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, 24, '2016-08-23 15:56:45') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) 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:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:56:45') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 25 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:56:45') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:56:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:56:45') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:56:45')  (0.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:56:45') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 28, 'test_holding', 'holding', '2016-08-23 15:56:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (14.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.6ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.1ms) 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  (11.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.4ms) CREATE 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  (9.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (14.1ms) 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  (12.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (14.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.7ms) 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  (11.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (14.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (14.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.5ms) CREATE 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  (11.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (14.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.3ms) 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  (15.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (15.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.3ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:56:57') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.9ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (1.6ms) 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 (4.5ms) DispatchedService Load (3.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 15:56:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.7ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9a1973d2ff1aba68ca9846383fd88c05', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 15:56:58')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 2  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:56:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:56:58' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 61ms (Views: 29.6ms | ActiveRecord: 5.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 15:56:58') SQL (0.3ms) INSERT 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') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:56:58') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.2ms) 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.0ms) Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:56:58') SQL (0.2ms) 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:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (2.0ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.8ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (2.0ms) BEGIN  (0.3ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8e879933d6fb9dfa250960b1e8de8021', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 15:56:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.6ms) 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) DispatchedService Load (0.5ms) 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 (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) Permalink Load (0.3ms) 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)  (0.5ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:56:58') SQL (0.2ms) 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:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'b1c8c88d3f5c7af7eeb4727c75106e61', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 15:56:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 56ms (Views: 16.6ms | ActiveRecord: 7.3ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 15:56:58') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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 15:56:58') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.6ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `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  (0.6ms) BEGIN SQL (0.3ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:56:58') SQL (0.2ms) 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, 11, '2016-08-23 15:56:58') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) 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:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:56:58') SQL (0.2ms) INSERT 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') SQL (0.3ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:56:58') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:56:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 14, 'test_holding', 'holding', '2016-08-23 15:56:58')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:56:58') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:56:58')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 15:56:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:58')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:56:58') SQL (0.9ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 15:56:58') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 15:56:58') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:56:58') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 15:56:58')  (5.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:56:58') SQL (0.1ms) INSERT 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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 15:56:58')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 DispatchedService Load (0.5ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:56:58') SQL (0.4ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:58')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (2.9ms) 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 DispatchedService Load (3.4ms) 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  (1.6ms) BEGIN  (2.0ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.9ms) 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` = 18 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:56:58')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.6ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:56:58')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:56:58') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:56:58')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (2.1ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (5.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:56:58') SQL (0.8ms) 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 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:56:58')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.1ms) BEGIN  (0.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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%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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.4ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (15.3ms) 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  (16.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (11.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.0ms) CREATE 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  (11.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.7ms) 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  (11.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (27.9ms) CREATE 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  (12.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.9ms) 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  (11.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (14.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.3ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.7ms) CREATE 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  (10.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.7ms) 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  (12.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.2ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (32.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (11.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 15:58:45') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 15:58:45') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 15:58:45') SQL (0.2ms) INSERT 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')  (12.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 15:58:45') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 15:58:45') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (1.2ms) 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 15:58:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:58:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) 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 DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC SQL (1.5ms) 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  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 15:58:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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' Request Load (0.9ms) 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 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.6ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.7ms) 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 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 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 15:58:45')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (1.9ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:58:45')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 15:58:45') SQL (0.1ms) 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')  (12.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:58:45')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 15:58:45')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 15:58:45') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (12.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 15:58:45') SQL (0.1ms) 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, 14, '2016-08-23 15:58:45') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 15:58:45') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 15 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 15:58:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 15:58:45') SQL (0.2ms) 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') SQL (2.0ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '7f66c801c0193a3c8469078602f6b420', 'd95884a882a64501650fb8f9deae5104', 16, 'info:sid/google', '0.0.0.0', '2016-08-23 15:58:45')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 ---------------------------------------------------------------------------- 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"} Request Load (4.7ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 15:58:45') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '2fe9e66d81694c36d164dc367bcaea7a', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 15:58:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:58:45' WHERE `dispatched_services`.`id` = 8  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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' DispatchedService Load (0.9ms) 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  (0.4ms) BEGIN SQL (0.5ms) 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  (1.1ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.5ms) BEGIN SQL (0.3ms) INSERT 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')  (0.8ms) COMMIT Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 15:58:46') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '14abdcd2bd89709b245ef0802a3ddbea', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 15:58:46')  (5.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:58:46' WHERE `dispatched_services`.`id` = 9  (0.5ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 15:58:46') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 15:58:46' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 44ms (Views: 13.4ms | ActiveRecord: 8.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 15:58:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 15:58:46') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.4ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.2ms) 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 (12.7ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 15:58:46') SQL (0.1ms) INSERT 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) 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')  (4.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 15:58:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 15:58:46') SQL (0.3ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'ea6853e8791aa2785b9a6de6ac4df89e', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 15:58:46')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (1.1ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 15:58:46') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 15:58:46') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '37d5d803d9aac920f44e6872cc5edf95', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 15:58:46')  (0.5ms) COMMIT  (2.4ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 15:58:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 15:58:46') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 15:58:46') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 15:58:46')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 15:58:46') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2016-08-23 15:58:46')  (7.1ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 15:58:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 15:58:46') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 28, 'test_holding', 'holding', '2016-08-23 15:58:46')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.1ms) 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  (13.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (11.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.4ms) CREATE 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  (11.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.4ms) 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  (11.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.5ms) CREATE 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  (10.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.4ms) 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  (30.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.2ms) CREATE 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  (10.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.4ms) 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  (11.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (34.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.6ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (1.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:21') SQL (0.1ms) 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, 1, '2016-08-23 16:00:21') SQL (5.5ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:21') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (1.0ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:00:21') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '180195decb98286b1df95cbf47db9e6a', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:21') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ----------------------------------------------------------------- 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:21') SQL (0.1ms) 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:21')  (5.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 5  (0.1ms) BEGIN SQL (0.2ms) 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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:21')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:00:21') SQL (0.1ms) 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:21')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:21')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:21') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:21')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 ServiceResponse Load (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:00:21' WHERE `dispatched_services`.`id` = 4  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8  (1.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:21') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:00:21')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------------------------------------------- Request Load (0.6ms) SELECT `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 DispatchedService Load (0.4ms) 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  (6.0ms) BEGIN  (2.3ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.7ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:21')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:00:21')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:00:21') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:00:21')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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 11ms (Views: 0.4ms | ActiveRecord: 2.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (3.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:21') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.8ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:00:21') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (13.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:00:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:21') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:00:21') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (2.8ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:21') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:21') SQL (0.1ms) 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:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:21')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:21') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:00:21') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:21')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:21') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.3ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:00:21') SQL (0.2ms) 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:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:00:21') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '78a7fdba2ff5003c1937e42c3f10ae1a', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 16:00:21')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:21' WHERE `dispatched_services`.`id` = 16  (0.4ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:22') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.7ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 17  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 45ms (Views: 13.0ms | ActiveRecord: 6.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:00:22') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:22') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'ec758742fcd513c19a64cd1e22336489', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:00:22')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 19  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.7ms) 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.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 19  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 34  (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.8ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:22') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', '373f25b6c3d0f5a253973febcf2a7446', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:00:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (6.4ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 20  (0.3ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:22') SQL (0.6ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'e45483e42165bb64c9d0eeed6c7c2523', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:00:22')  (0.3ms) COMMIT  (0.7ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.3ms) 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 (1.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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 (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) Request Load (0.4ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.3ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) 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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 21  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 39  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:22') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:00:22')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 22  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (2.3ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:22') SQL (0.2ms) 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')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'b5ec79bd3ac5893b124f8429477e042b', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:00:22')  (11.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:22' WHERE `dispatched_services`.`id` = 23  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.2ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.4ms) 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 (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)  (0.3ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:00:22')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.2ms) 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) Request Load (0.2ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 14.2ms | ActiveRecord: 3.4ms)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.1ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (12.0ms) 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  (13.3ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (30.0ms) CREATE 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  (12.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (7.8ms) 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  (9.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.9ms) CREATE 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  (10.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.3ms) 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  (11.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.0ms) CREATE 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  (18.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (28.5ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (36.5ms) 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  (17.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (17.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (13.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (15.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (16.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (20.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (14.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (12.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (44.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.3ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:46') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 1, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:00:47')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:47') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:00:47') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:47' WHERE `dispatched_services`.`id` = 3  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:47') SQL (0.2ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:47') SQL (0.2ms) 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, 5, '2016-08-23 16:00:47') SQL (0.1ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 16:00:47') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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, 6, '2016-08-23 16:00:47') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:47') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 7 LIMIT 1  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:47') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 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 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:47') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 9  (0.1ms) BEGIN SQL (0.1ms) 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 9\n', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.4ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:00:47') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:00:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:47') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:00:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (1.7ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:00:47' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:00:47') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.7ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.7ms) 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 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:47')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.6ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:47')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:00:47') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:00:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (6.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (6.5ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 29ms (Views: 0.4ms | ActiveRecord: 14.9ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:47') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:47') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 ---------------------------------------------------------------------------- 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"} Request Load (9.0ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:47') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6a3da20c00fc0ee6bd4adc4a9b39ff81', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:00:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.3ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:00:47' WHERE `dispatched_services`.`id` = 12  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (3.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (2.2ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:00:47') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:00:47')  (5.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (4.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 13  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:47') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8036b7fbdeaabdc2d8a136c0b20ec2f1', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 16:00:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:47' WHERE `dispatched_services`.`id` = 14  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 42ms (Views: 13.4ms | ActiveRecord: 5.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:00:47') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:00:48') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4602a8aaaf162a3c23d1f8767f8e9614', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:00:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 16  (6.4ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.6ms) 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.6ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 16  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.4ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 29  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (3.6ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:48') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:00:48')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.5ms) 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) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.7ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:00:48') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (2.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:48')  (6.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18  (5.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:00:48')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 18  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 34  (0.2ms) 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%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"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.1ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:48') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '583894ed85235d3035edbe2f2a0291c1', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:00:48')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.5ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.7ms) 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 (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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 [["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) DispatchedService Load (0.8ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:48') SQL (0.2ms) 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')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) 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', '1b88497a2c06f7ae26b8c975aff31f0c', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:00:48')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:48' WHERE `dispatched_services`.`id` = 20  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (1.3ms) 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 (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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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%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"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.7ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.6ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (1.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 29ms (Views: 19.2ms | ActiveRecord: 4.5ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:48') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:48') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.3ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:48') SQL (0.2ms) 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') SQL (0.2ms) 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:48')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:00:48')  (0.7ms) COMMIT ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.4ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (13.8ms) 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  (30.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (10.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.1ms) 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  (15.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.5ms) CREATE 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  (11.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.0ms) 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  (11.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (30.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (12.2ms) CREATE 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  (11.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.0ms) 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  (13.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (14.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (14.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) 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 22ms (Views: 0.2ms | ActiveRecord: 1.9ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:00:56') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:00:56') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:00:56')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:00:56') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:00:56')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 DispatchedService Load (0.7ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (1.4ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:00:56') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:00:56')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.9ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (2.0ms) 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 DispatchedService Load (0.4ms) 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  (1.0ms) BEGIN  (1.6ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.9ms) 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` = 2 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:00:56')  (0.7ms) COMMIT SQL (0.4ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:00:56')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:00:56') SQL (0.2ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:00:57')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- DispatchedService Load (1.6ms) 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 Request Load (1.2ms) 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  (0.3ms) BEGIN  (1.5ms) BEGIN SQL (1.6ms) 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:57' WHERE `dispatched_services`.`id` = 3 SQL (0.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:00:57')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:00:57')  (0.6ms) BEGIN SQL (1.1ms) 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') SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.8ms) COMMIT  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (1.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0d68c0cd46391aa7099fe42ea8850b24', '06d451b80bf9fe3ce6849a48c98522d7', 9, 'info:sid/google', '0.0.0.0', '2016-08-23 16:00:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:00:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:00:57') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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"} Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:00:57') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (1.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 DispatchedService Load (0.5ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:00:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) 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', '78f928828d0edd1bf3d71dc5dadb7cd2', 'a03fb1fb17f24f5ea845bf6c4450490b', 12, '127.0.0.1', '2016-08-23 16:00:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (1.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.9ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:00:57') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:00:57' WHERE `dispatched_services`.`id` = 8  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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 (13.1ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 46ms (Views: 14.3ms | ActiveRecord: 5.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:00:57') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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.6ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.7ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:00:57') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:00:57') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bbc7258ef77b5dd1df3232c05d1fdc86', '9902a1d22a141a826ae31b1c83cb928c', 16, '127.0.0.1', '2016-08-23 16:00:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:00:57') SQL (0.5ms) 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')  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (0.2ms) 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', 'a58166ab78747292187e7992f62a3e29', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:00:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 12  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.3ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:00:57') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.6ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:00:57') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'c01b21d7a001f30631a7354e631474e8', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:00:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 14  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 51ms (Views: 15.1ms | ActiveRecord: 5.7ms) Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:57') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:00:57') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:00:57') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 21, 'test_holding', 'holding', '2016-08-23 16:00:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:00:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:00:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:00:58') SQL (0.2ms) 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:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:00:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:00:58') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:00:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:00:58') SQL (0.2ms) 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:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (3.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:00:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:00:58') SQL (0.2ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (10.6ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:00:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:00:58') SQL (0.1ms) 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:58') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (13.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.7ms) 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  (8.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (10.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (10.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (7.5ms) CREATE 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  (9.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (7.7ms) 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  (9.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (7.6ms) CREATE 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  (8.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.6ms) 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  (12.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (33.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (13.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (10.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (10.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.1ms) 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  (10.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (9.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (7.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (9.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (9.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (7.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (8.6ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (7.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (38.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.3ms) 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"} Request Load (0.2ms) 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 17ms (Views: 0.3ms | ActiveRecord: 1.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:05:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:05:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.2ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:05:55')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:05:55')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.3ms) 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  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:05:55')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (2.1ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55') SQL (0.8ms) 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` = 2 SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:05:55')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.8ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:05:55')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:05:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:05:55')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (2.2ms) SELECT `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  (0.1ms) BEGIN DispatchedService Load (1.7ms) 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 SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:05:55')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:05:55') SQL (0.8ms) 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` = 3 SQL (0.8ms) 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')  (0.8ms) COMMIT  (0.3ms) COMMIT  (0.6ms) BEGIN  (1.2ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11 SQL (0.8ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.3ms) COMMIT  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:05:55') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (11.8ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:05:55')  (5.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (1.6ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.6ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:05:55') SQL (0.1ms) 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, 13, '2016-08-23 16:05:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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, 14, '2016-08-23 16:05:55') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.3ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 15 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:05:55') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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')  (11.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:05:55') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:05:55') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) 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:05:55 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:05:55') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0564cd267b3ec62534dcc7e42cd4eab7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:05:55')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.5ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.4ms) 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') SQL (0.2ms) 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:05:55')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 12  (5.9ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.7ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:05:55' WHERE `dispatched_services`.`id` = 13  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.7ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 45ms (Views: 15.3ms | ActiveRecord: 7.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 DispatchedService Load (0.2ms) 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.3ms) Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.4ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:05:55') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (1.0ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.8ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:05:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:05:56') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'b84c1344813a4fd31393a198b0120ab1', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:05:56')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 16  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:05:56') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (5.9ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (1.2ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:05:56') SQL (0.3ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:05:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:05:56') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '07f153d8154f1c8376f2c05721db864b', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:05:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 19  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (4.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.2ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 55ms (Views: 19.9ms | ActiveRecord: 9.3ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (18.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (32.4ms) 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  (12.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.9ms) CREATE 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  (12.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.1ms) 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  (12.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.4ms) CREATE 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  (11.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.0ms) 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  (11.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (31.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.0ms) CREATE 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  (11.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.9ms) 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  (10.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.6ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (20.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:00') SQL (0.2ms) INSERT 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') SQL (0.5ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:06:00') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:00') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:06:00') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:00') SQL (0.1ms) 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:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:00') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:00') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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:06:00 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:00') SQL (0.1ms) 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')  (4.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1c18f1e05ca8d5bd77172151835592ea', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.3ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (2.6ms) 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:00' WHERE `dispatched_services`.`id` = 4  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.7ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:01') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cddd8d88b3ff17f831d2de8642dec51e', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:06:01')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:01' WHERE `dispatched_services`.`id` = 6  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.5ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 61ms (Views: 26.8ms | ActiveRecord: 6.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:06:01') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.2ms) 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.0ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.3ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.6ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:01') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4699f2f8f65bf4db4969de411b1d0b93', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:06:01')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (1.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:01') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd2af376a255c7a45846191267245a3a9', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:06:01')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (1.3ms) 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.5ms) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:01') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT  (0.6ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:06:01') SQL (0.2ms) INSERT 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')  (11.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 17  (0.1ms) BEGIN SQL (0.2ms) 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 17\n', 17, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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 16:06:01')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:06:01') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:01')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 DispatchedService Load (0.5ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (1.4ms) BEGIN SQL (0.2ms) 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:01' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:06:01') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:06:01')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (2.7ms) SELECT `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  (0.1ms) BEGIN DispatchedService Load (1.8ms) 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 SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:06:01') SQL (0.7ms) 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:01' WHERE `dispatched_services`.`id` = 14 SQL (0.7ms) 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')  (0.6ms) COMMIT  (0.3ms) COMMIT  (0.5ms) BEGIN  (1.0ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23 SQL (0.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:06:01')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:06:01') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:06:01')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) 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' Request Load (2.0ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (2.3ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:01') SQL (0.6ms) 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:01' WHERE `dispatched_services`.`id` = 15 SQL (0.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:06:01')  (0.6ms) COMMIT SQL (0.2ms) 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')  (0.1ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.7ms) BEGIN  (0.3ms) COMMIT SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:06:01')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:01') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:06:01') SQL (0.1ms) 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:01') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 25, '2016-08-23 16:06:01') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 25, '2016-08-23 16:06:01') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:06:01') SQL (0.1ms) 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:06:01') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (1.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:06:02') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:06:02') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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 16:06:02')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.1ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (6.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:06:02') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (19.3ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.7ms) 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  (16.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (18.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (17.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.3ms) CREATE 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  (11.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (31.8ms) 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  (12.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.6ms) CREATE 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  (12.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.4ms) 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  (11.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (23.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (18.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (14.7ms) CREATE 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  (37.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (21.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (22.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (13.2ms) 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  (16.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (15.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (12.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (16.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (19.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (14.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (40.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (19.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) 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 18ms (Views: 0.2ms | ActiveRecord: 1.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:12') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:06:12') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.2ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:12')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:12') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:06:12')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (1.4ms) 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-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) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (1.7ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:06:12') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:06:12')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (2.1ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.8ms) 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` = 2 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:12')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.6ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:06:12')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:12') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (11.7ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:06:12')  (6.3ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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 ---------------------------------------------------------------------------- DispatchedService Load (1.5ms) 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 Request Load (1.4ms) 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  (0.3ms) BEGIN  (0.1ms) BEGIN SQL (6.0ms) 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` = 3 SQL (0.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:12')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:12')  (0.1ms) BEGIN SQL (1.1ms) 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') SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.8ms) COMMIT  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:12') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0f37d2c3833349a6328dbbd5686d7a7c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:12')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (6.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:12' WHERE `dispatched_services`.`id` = 4  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 DispatchedService Load (0.4ms) 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 (2.5ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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 (6.0ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:06:13') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (6.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 5  (4.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:13') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '93d29385ebee5c97d4a22ef7c3da53ef', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:06:13')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:13' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.2ms) 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) Permalink Load (0.3ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 44ms (Views: 16.1ms | ActiveRecord: 5.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:06:13') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.2ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:13') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.8ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:13') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f3ff9ef6979d11aa2c97c78feae07fec', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:06:13')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.8ms) 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` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:13') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (5.9ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (11.0ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:13') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'a01a119f87c98e8f02e8c2922d3849be', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:06:13')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:13') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (2.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 50ms (Views: 15.1ms | ActiveRecord: 9.4ms) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:06:13') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:06:13') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', 'f2a0b511a1a56a37efed459e8fdc5d76', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:13')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (5.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:06:13') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (5.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'cd3e56eac55cf06f125b843bc281b5ca', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:06:13')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:06:13') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:06:13') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (2.3ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:06:13') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'test_holding', 'holding', '2016-08-23 16:06:13')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:06:13') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:06:13') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:06:13') SQL (0.2ms) 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') SQL (0.2ms) 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:13')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:13')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:06:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:06:13') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:06:13') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:06:13') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:06:13') SQL (0.1ms) 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:13')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (37.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.4ms) 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  (12.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (11.9ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.0ms) CREATE 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  (11.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.2ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.0ms) CREATE 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  (10.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.9ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (30.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.2ms) CREATE 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  (10.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.7ms) 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  (11.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (6.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:24') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:06:24') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:06:24') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:06:24') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', '26bdb29c269d6cfc3e382c45e3c8661c', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:06:24')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:24' WHERE `dispatched_services`.`id` = 2  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 DispatchedService Load (0.6ms) 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.5ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:06:25') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:06:25' WHERE `dispatched_services`.`id` = 3  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (2.2ms) 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) DispatchedService Load (0.4ms) 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 (16.9ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 49ms (Views: 16.6ms | ActiveRecord: 8.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:06:25') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:06:25') SQL (0.2ms) 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')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f87b701cd4f8689bc16abefed729c43d', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:06:25')  (4.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 5  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.6ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.2ms) 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)  (0.3ms) BEGIN  (0.4ms) 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"} Request Load (0.7ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:06:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:06:25') SQL (0.2ms) 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:25')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.2ms) 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.0ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.6ms) 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.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) ServiceResponse Load (0.7ms) 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) DispatchedService Load (0.5ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:06:25') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (12.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:06:25') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f16f2556d67606f784364cb3c801ac83', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:06:25')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 8  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.6ms) Rendered /Users/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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:06:25') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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.2ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:06:25') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:06:25') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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 8  (0.1ms) BEGIN SQL (0.2ms) 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 8\n', 11, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:06:25')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:06:25') SQL (0.3ms) INSERT 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')  (11.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:06:25')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (1.4ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:06:25') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:06:25')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.5ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) 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 --------------------------------------------------------------------------------- DispatchedService Load (1.1ms) 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 Request Load (1.1ms) SELECT `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  (0.3ms) BEGIN  (1.3ms) BEGIN SQL (2.1ms) 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 SQL (0.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:06:25')  (0.7ms) BEGIN SQL (1.1ms) INSERT 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') SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13  (0.7ms) COMMIT  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:06:25')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:06:25') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:06:25')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (2.0ms) SELECT `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 DispatchedService Load (0.3ms) 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  (1.1ms) BEGIN  (1.5ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:06:25') SQL (0.6ms) 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 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:06:25')  (1.4ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (10.1ms) COMMIT  (8.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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%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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.8ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.9ms) 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  (13.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (15.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.8ms) CREATE 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  (11.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.9ms) 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  (11.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (21.3ms) CREATE 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  (16.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (18.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (14.8ms) 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  (19.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (19.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (35.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (15.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (18.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (15.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (12.2ms) CREATE 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  (15.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (25.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (17.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (14.2ms) 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  (16.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (43.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (11.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (13.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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"} Request Load (0.2ms) 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 16ms (Views: 0.2ms | ActiveRecord: 1.8ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:12') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:12') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:12')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:12') SQL (0.1ms) INSERT 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')  (13.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:07:12')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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":"","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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.5ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:12') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:12')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (0.9ms) 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 DispatchedService Load (0.3ms) 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  (1.7ms) BEGIN  (1.4ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.7ms) 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 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 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:12')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.6ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:07:12')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:12') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:07:12')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- DispatchedService Load (1.0ms) 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 Request Load (1.6ms) 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  (0.2ms) BEGIN  (0.1ms) BEGIN SQL (1.7ms) 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/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 SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:12')  (0.8ms) COMMIT SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:07:12')  (4.6ms) BEGIN SQL (1.4ms) 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') SQL (0.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.8ms) COMMIT  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:07:12') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9f11078a039dec61ed24fcf20105b43b', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:07:12')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (6.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:07:12') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (6.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 DispatchedService Load (0.5ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.6ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:07:12') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (1.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fa25b813e791f6495313d3c2b8d72e0c', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:07:12')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:12' WHERE `dispatched_services`.`id` = 6  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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.4ms) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 45ms (Views: 14.2ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:07:12') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:07:12') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.5ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:07:12') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8b693f7582effcc790eb99ad73bda381', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:07:12')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:07:12') SQL (0.1ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (4.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:07:12') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b05b312234aeaacfd908e7c9e5d0f7f8', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:07:12')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:07:12') SQL (0.2ms) 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:12')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.4ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.1ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.4ms) 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  (14.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.0ms) 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  (11.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (11.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.9ms) 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  (10.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (34.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.0ms) CREATE 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  (11.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.7ms) 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  (11.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:31') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (17.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (1.5ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:31') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:31') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 16:07:31')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:31') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:31') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) 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.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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:31') SQL (0.2ms) 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:31')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 16:07:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:07:31') SQL (0.2ms) 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:31')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:07:31')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:07:31') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (5.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:07:31')  (16.4ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 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  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:07:31') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (1.7ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:07:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.9ms) SELECT `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 DispatchedService Load (4.0ms) 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  (2.2ms) BEGIN  (1.9ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.7ms) 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 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:07:31')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.8ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 16:07:31')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:07:31') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:07:31')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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 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) DispatchedService Load (0.4ms) 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 ----------------------------------------------------------------------------  (5.0ms) BEGIN Request Load (2.4ms) 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 SQL (0.4ms) 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/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  (0.1ms) BEGIN  (1.7ms) COMMIT SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:31')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:07:31') SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19 SQL (0.7ms) 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')  (0.7ms) COMMIT  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:07:31') SQL (0.2ms) INSERT 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')  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:07:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:07:31') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.1ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (11.3ms) COMMIT Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:07:31') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:07:31') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:07:31') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (1.6ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.9ms) 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  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (6.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 DispatchedService Load (0.5ms) 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) Referent Load (4.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:07:32') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cfb2cc0c045c1530f63351a9a6841b6e', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 16:07:32')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.6ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:32' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:07:32') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (10.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:07:32' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 69ms (Views: 14.2ms | ActiveRecord: 22.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:07:32') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:07:32') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '7e3794835f36c45b944e90940756b1de', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:07:32')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:07:32') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (12.0ms) 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'  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.9ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:07:32') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3d82744d75bf8f92c0b70677224f6727', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:07:32')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:07:32') SQL (0.2ms) INSERT 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:07:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:07:32') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '4701352e05511a4313cec2568cf54c67', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:07:32')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:07:32') SQL (0.2ms) 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:07:32') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) 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:07:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:07:32') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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 16:07:32') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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 16:07:32')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (2.6ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:07:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:07:32') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8cac0852fdc47950c677f35488ecf6c9', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:07:32')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.3ms) 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  (16.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (12.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (11.9ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.8ms) CREATE 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  (13.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.3ms) 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  (12.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (11.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (38.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (12.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (16.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.6ms) CREATE 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  (11.1ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (13.8ms) 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  (12.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (14.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (32.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.5ms) 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"} Request Load (0.2ms) 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 21ms (Views: 0.2ms | ActiveRecord: 1.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:07:59') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:07:59') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:07:59')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:07:59') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:07:59')  (6.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (11.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:07:59') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:07:59')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (0.9ms) 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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.5ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.8ms) 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:07:59' WHERE `dispatched_services`.`id` = 2 SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:07:59')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:07:59')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:07:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:07:59') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (1.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:08:00')  (6.2ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:00') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:08:00') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:08:00')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:08:00') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:08:00') SQL (0.1ms) INSERT 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')  (11.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 DispatchedService Load (0.5ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:08:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:08:00') SQL (0.1ms) 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') SQL (0.3ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'dc5580023a2f5442d8d1c47795de1771', 'a03fb1fb17f24f5ea845bf6c4450490b', 10, '127.0.0.1', '2016-08-23 16:08:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:00' WHERE `dispatched_services`.`id` = 6  (0.2ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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.4ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:08:00') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:00' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (14.2ms) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 49ms (Views: 15.2ms | ActiveRecord: 5.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.2ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:08:00') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.8ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.0ms) Rendered /Users/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) Permalink Load (0.3ms) 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)  (0.7ms) BEGIN  (0.6ms) 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"} Request Load (0.8ms) SELECT `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  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:08:00') SQL (0.4ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:08:01')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.8ms) 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) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.7ms) 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.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) ServiceResponse Load (0.8ms) 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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 9  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:08:01')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:08:01' WHERE `dispatched_services`.`id` = 9  (11.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (6.1ms) 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%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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:08:01') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c98690e8cf67f644e9eb22216797aecb', '9902a1d22a141a826ae31b1c83cb928c', 14, '127.0.0.1', '2016-08-23 16:08:01')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (4.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:08:01') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'fa94c0ad7ef2c7ea86cd7dd1220f0e76', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:08:01')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000416\n' WHERE `service_responses`.`id` = 24  (11.7ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.4ms) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:08:01') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:08:01')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.3ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:08:01') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c310cf5935b64e0033015d52a5aad830', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:08:01')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:01' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (3.6ms) 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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (17.8ms) Permalink Load (0.2ms) 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)  (0.7ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.1ms) 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%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"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (13.5ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.1ms | ActiveRecord: 3.9ms) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:01') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:08:01') SQL (0.1ms) 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:08:01') SQL (0.1ms) 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')  (12.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 16:08:01') SQL (0.3ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:08:01') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:08:01') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:08:01') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:08:01')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:08:01') SQL (0.1ms) 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') SQL (0.3ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:08:01')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:08:01') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:08:01') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:08:01') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:08:01' WHERE `dispatched_services`.`id` = 19  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:08:01') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (5.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:08:01') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:08:01')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:08:01') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (2.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:08:01') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.4ms) 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  (18.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.8ms) CREATE 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  (10.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (14.2ms) 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  (12.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.7ms) CREATE 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  (11.0ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (36.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.2ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.3ms) CREATE 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  (11.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.5ms) 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  (12.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (35.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.4ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (14.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:08:53') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:08:53') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:08:53')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:08:53') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 16:08:53')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:08:53') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:08:53') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:08:53') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:08:53' WHERE `dispatched_services`.`id` = 6  (13.8ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:08:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:08:53') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:08:53') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 8, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:53')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:08:53') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:08:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:08:53') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:53') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'e4b3c4459a93a669b0d481ec05a240d4', 'd95884a882a64501650fb8f9deae5104', 10, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:53')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (2.1ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:08:53') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:08:53') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e9ef95eee7d8424d5a7e655e26c3eff5', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 16:08:53')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Exists (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:08:53') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:08:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 16:08:53') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f9926c9b6281680563832746ede52775', 'a03fb1fb17f24f5ea845bf6c4450490b', 13, '127.0.0.1', '2016-08-23 16:08:53')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 12  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (12.9ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:08:53') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:53' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (11.4ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 42ms (Views: 12.8ms | ActiveRecord: 5.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.7ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:08:54')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 15  (0.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:08:54')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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' DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) 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:08:54' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20  (0.4ms) 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-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (1.0ms) 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.7ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.7ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.9ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:08:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f08fdaea0a5b1070d730a2d6f81e6f5c', '9902a1d22a141a826ae31b1c83cb928c', 17, '127.0.0.1', '2016-08-23 16:08:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.3ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.2ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 16  (5.2ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.8ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.5ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:08:54') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '6517c8f3382fb63e841d4da25006cfac', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 16:08:54')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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` = 25  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.6ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:08:54') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) 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')  (7.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:08:54')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:08:54')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:08:54' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) Request Load (0.4ms) 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 (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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.6ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) Request Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:08:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:08:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (11.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 32  (0.1ms) BEGIN SQL (0.2ms) 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 32\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:08:54')  (5.1ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:08:54') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:08:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (6.2ms) 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' ServiceResponse Load (0.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (1.6ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:08:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://example.org Completed 302 Found in 15ms (ActiveRecord: 2.8ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:08:54') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:08:54')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:08:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (0.9ms) 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 DispatchedService Load (0.4ms) 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  (13.6ms) BEGIN  (9.2ms) BEGIN SQL (3.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:08:54') SQL (0.9ms) 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:08:54' WHERE `dispatched_services`.`id` = 22 SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:08:54')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 41  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 16:08:54')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:08:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:08:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.3ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (33.0ms) 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  (17.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (20.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (17.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.3ms) CREATE 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  (10.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.4ms) 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  (12.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (11.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.5ms) 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  (12.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (31.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.2ms) CREATE 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  (11.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (18.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (10.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (9.6ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:10:21') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (11.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:10:22') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:22')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:22') SQL (2.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:10:22') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:10:22') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22' WHERE `dispatched_services`.`id` = 4  (0.7ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:10:22') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:10:22') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:10:22') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:10:22') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ---------------------------------------------------------------------------- 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:10:22') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '64efd5b949912d398ac7e3e66c290f00', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:10:22')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:22' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (4.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:10:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:10:22') SQL (0.1ms) INSERT 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') SQL (0.3ms) 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') SQL (0.2ms) 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:10:22')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 10  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.5ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:22') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:10:22') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '0216abfbc07e582d31ce18327b6f975d', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:10:22')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 11  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 40ms (Views: 11.8ms | ActiveRecord: 5.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:10:22') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:10:22') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '2fe5ec49f40f20ccc622d281c933962c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:10:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.1ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.4ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:10:22') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:22')  (5.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:22' WHERE `dispatched_services`.`id` = 14  (5.9ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:10:23') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:10:23')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 15  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) 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%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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.2ms) 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.6ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:10:23') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:10:23')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.1ms) Permalink Load (0.4ms) 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)  (0.3ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:10:23') SQL (0.1ms) INSERT 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')  (4.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:23' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) 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:10:23')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 28ms (Views: 16.4ms | ActiveRecord: 5.0ms) Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:10:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:10:23') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ce99ad043543666afff13aefdeae56a0', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:23')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:10:23') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:10:23') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:10:23') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '834238b829f6bf38c7b3f7dbf3281ca4', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:23')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:10:23') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:10:23') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:10:23') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:10:23') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:10:23')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:10:23') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (0.8ms) 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 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.7ms) 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:23' WHERE `dispatched_services`.`id` = 22 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:10:23')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39  (21.9ms) BEGIN  (1.7ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:10:23') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:23')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:10:23') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:10:23')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (32.2ms) 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  (15.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (16.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (19.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.9ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.9ms) 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  (16.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.6ms) CREATE 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  (10.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.7ms) 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  (10.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (32.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (10.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.0ms) 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  (13.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (14.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (29.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:10:56') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.3ms) 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.5ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:10:57') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'df2ab6362a0fdc4b5881c7218fcbe7cf', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:10:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:10:57') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.6ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 78ms (Views: 19.4ms | ActiveRecord: 17.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:10:57') SQL (0.2ms) 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') SQL (0.5ms) INSERT 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')  (0.2ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.5ms) 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.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.5ms) COMMIT 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"} Request Load (0.9ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:10:57') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '80316a55ace49352b10b0347a239a029', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:10:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 5  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.5ms) 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.7ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.5ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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 (22.1ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 5  (5.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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-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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:10:57') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '61de7b303c4998d68ab7b508a1f41588', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:10:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.5ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:10:57') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', '2c31ac89ee06924a4cd686ad3241341b', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:10:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.3ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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-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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 7  (5.1ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:10:57') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:57')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:10:57') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8623746c4e2a4d96a1acf8bff73fd71e', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:10:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:10:57' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.5ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 3.3ms) Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) 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:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:10:57') SQL (0.2ms) 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, 10, '2016-08-23 16:10:57') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:10:57') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:10:57') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) 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:10:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:10:57') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:57') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e03e51196003b93b88f9f7966bcc86d3', 'd95884a882a64501650fb8f9deae5104', 12, 'info:sid/google', '0.0.0.0', '2016-08-23 16:10:57')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:10:57') SQL (0.2ms) INSERT 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 13  (0.1ms) BEGIN SQL (0.3ms) 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 13\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:10:57')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:10:57') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:10:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:10:57') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.2ms) 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:57' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22  (0.7ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:10:57') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:10:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.7ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.7ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:10:57')  (0.9ms) COMMIT SQL (0.4ms) INSERT 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')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:10:57')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:10:57') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:10:57')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) 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' Request Load (1.0ms) 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 DispatchedService Load (0.4ms) 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  (2.1ms) BEGIN  (1.7ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:10:57') SQL (0.7ms) 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` = 14 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:10:57')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:10:58')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:10:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.2ms) COMMIT DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:10:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:10:58') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:10:58')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:10:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:10:58') SQL (0.2ms) 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') SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:10:58')  (0.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:10:58') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:10:58') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:10:58') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:10:58')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:10:58') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) 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  (0.6ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:10:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:10:58') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 28, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:10:58')  (6.4ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT 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')  (6.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (23.3ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.2ms) 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  (15.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (17.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.9ms) CREATE 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  (13.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.5ms) 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  (12.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (10.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (14.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (26.1ms) 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  (17.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (11.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (10.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (36.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:09') SQL (0.1ms) INSERT 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') SQL (0.4ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:11:09') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:11:09') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:11:09') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:11:09') SQL (0.1ms) 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, 4, '2016-08-23 16:11:09') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:09') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 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:11:09 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:11:09') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd6026736ca1a348a93f0383ba5cbbeb8', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 16:11:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:11:09' WHERE `dispatched_services`.`id` = 5  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 16:11:09') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:09' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:11:09') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '8c462edf9e15fe8334f5f991f0339f06', 'bc13b80c2923ce2cbe0c8347141587a7', 8, '127.0.0.1', '2016-08-23 16:11:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 7  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.2ms) 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) Permalink Load (0.2ms) 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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 41ms (Views: 12.2ms | ActiveRecord: 5.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:11:10') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (10.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '4f0eeb8541385bb53d4c9e5e3af0ebef', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 16:11:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 9  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.3ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'da57ccadffc850c52b557dbade83230b', '9902a1d22a141a826ae31b1c83cb928c', 11, '127.0.0.1', '2016-08-23 16:11:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 10  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:10') SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '60f8ff32ca7e7b59f5bb83cc9b1f68bd', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:11:10')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) 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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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` = 15  (0.6ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:10') SQL (0.2ms) 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:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:10')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 12  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.2ms) 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) CACHE (0.0ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '111e6e7cb4bc8d1f60800557dbbd7f1c', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:11:10')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:10' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 3.4ms) Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:10') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (5.1ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:10') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:10') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 17, 'test_holding', 'holding', '2016-08-23 16:11:10')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:10') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:11:10' WHERE `dispatched_services`.`id` = 18  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:11:10') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:10') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 21, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:11:10')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:10') SQL (0.2ms) 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:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:11:10')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:10') SQL (0.1ms) 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:10')  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:10')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.5ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:11:10')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (7.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (2.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:11:10' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:10') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:10')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.5ms) SELECT `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 DispatchedService Load (0.4ms) 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  (2.8ms) BEGIN  (2.2ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.8ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:10')  (1.0ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.7ms) COMMIT SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39  (0.8ms) BEGIN  (2.2ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:11:10')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:10') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:11:10')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 15ms (Views: 0.3ms | ActiveRecord: 2.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:10') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (6.4ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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%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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.6ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (23.1ms) 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  (26.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (25.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (39.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (16.6ms) CREATE 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  (14.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.3ms) 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  (12.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.5ms) CREATE 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  (11.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.8ms) 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  (12.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (38.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.9ms) CREATE 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  (12.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.5ms) 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  (12.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) 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:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:32') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:11:32') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:32') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f42dd21d3a65b5485c4a0237b6c0c167', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:32')  (0.7ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:11:32') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (18.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:11:32') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ---------------------------------------------------------------------------- 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:32') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '71e4d6bf0cb88a4425949b000947547e', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:11:32')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 4  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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 (1.3ms) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 16:11:32') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:11:32')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 5  (6.3ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:11:32') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c60657df5fd1a6b226db3f025fb0d7be', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 16:11:32')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:32' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (6.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.7ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 59ms (Views: 19.3ms | ActiveRecord: 12.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:32') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 16:11:32') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.2ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.7ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (1.0ms) 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 (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) Permalink Load (0.3ms) 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)  (0.3ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:11:32') SQL (0.2ms) 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:32')  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (1.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:32') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '48c2be07f03330cb07d4883bf93238e5', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 16:11:32')  (0.5ms) COMMIT  (0.1ms) BEGIN  (5.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (5.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:32') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (2.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:32') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '48e1e2a0f36c53b07e2ff62ab07f9cb8', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:11:32')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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.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)  (0.3ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:32') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:32') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4b6d2b7125f01c63411437614a0470a2', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:11:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:33' WHERE `dispatched_services`.`id` = 12  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 52ms (Views: 14.7ms | ActiveRecord: 7.6ms) Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:33') SQL (0.1ms) 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:33')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:33') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:33') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:33') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:33') SQL (0.1ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:33') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 16  (0.1ms) BEGIN SQL (0.2ms) 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', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:33')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:11:33') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:33')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:33') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:33')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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' Request Load (2.2ms) 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 DispatchedService Load (0.4ms) 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  (1.3ms) BEGIN  (1.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.7ms) 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` = 14 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:33')  (0.7ms) COMMIT SQL (0.2ms) 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')  (0.6ms) BEGIN  (1.0ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:33')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:33') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:33')  (39.7ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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) DispatchedService Load (0.7ms) 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 ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ----------------------------------------------------------------------------  (0.1ms) BEGIN Request Load (2.0ms) SELECT `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 SQL (0.4ms) 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  (0.8ms) BEGIN  (1.7ms) COMMIT SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:33')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:33') SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25 SQL (0.7ms) 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:33')  (0.7ms) COMMIT  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:33') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 25, 'test_holding', 'holding', '2016-08-23 16:11:33')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:33') SQL (0.1ms) 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') SQL (0.1ms) 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:33')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:33')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:33') SQL (0.1ms) 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:33') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:33') SQL (0.1ms) 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:33') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (41.1ms) DROP DATABASE IF EXISTS `dummy_test`  (0.7ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.5ms) 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  (13.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (15.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.1ms) CREATE 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  (12.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.9ms) 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  (13.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.1ms) CREATE 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  (10.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (14.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.9ms) 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  (12.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (36.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (15.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.8ms) CREATE 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  (11.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (11.2ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (34.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:11:58') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.4ms) 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.5ms) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:11:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:11:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '13cc7536ce23011d80ed6d9f9803e286', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:11:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:58' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:11:59' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 46ms (Views: 14.9ms | ActiveRecord: 6.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.7ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:11:59') SQL (0.6ms) 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:59')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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.7ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (2.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:11:59') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0cdff24694aef7c77243872b13c3ccc8', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:11:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 6  (12.0ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) 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"} Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:11:59') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.2ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:11:59') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:11:59') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'b1c9e72f118502d5172eb516cd7ff285', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:11:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 9  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 46ms (Views: 14.2ms | ActiveRecord: 8.0ms) Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.1ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 ServiceResponse Load (0.3ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:11:59') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:11:59') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 11  (0.1ms) BEGIN SQL (0.2ms) 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 11\n', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:11:59')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:11:59')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:11:59') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:11:59')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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' Request Load (0.8ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.7ms) 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` = 12 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:11:59')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:11:59')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:11:59') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:11:59')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.6ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.1ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:11:59') SQL (0.6ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:11:59')  (0.7ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:11:59') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.2ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:11:59') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '17d104f4a8eec4b21a35298959e1c24e', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:11:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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 16:11:59') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:11:59') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:11:59') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:11:59') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:11:59') SQL (0.2ms) 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:59') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:11:59') SQL (0.2ms) 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') SQL (0.1ms) 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:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:59')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:11:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:11:59') SQL (0.1ms) 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') SQL (0.1ms) 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:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:11:59')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.8ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (32.8ms) 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  (16.3ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (11.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.3ms) 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  (16.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (9.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.0ms) 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  (10.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (36.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (15.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (17.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.0ms) CREATE 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  (11.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.5ms) 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  (13.2ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.2ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (15.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) 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 20ms (Views: 0.2ms | ActiveRecord: 1.8ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:12:17') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:12:17') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.2ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:17')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:12:17') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:12:17')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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-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) DispatchedService Load (1.7ms) 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 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC SQL (1.7ms) 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  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:12:17') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:17')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (0.7ms) 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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.7ms) 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` = 2 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:12:17')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:12:17')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:12:17') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:12:17')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:17') SQL (0.7ms) 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 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:12:17')  (0.8ms) COMMIT SQL (0.4ms) INSERT 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:12:17') SQL (0.1ms) 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') SQL (0.1ms) 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:17')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 8, 'test_holding', 'holding', '2016-08-23 16:12:17')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:12:17') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:12:17') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:12:17') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 DispatchedService Load (0.6ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:12:18') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '852c93f158070bb7de6ebbd85c016d18', 'a03fb1fb17f24f5ea845bf6c4450490b', 12, '127.0.0.1', '2016-08-23 16:12:18')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 8  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.4ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:12:18') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (6.2ms) 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' DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:18' WHERE `dispatched_services`.`id` = 9  (6.0ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 58ms (Views: 15.3ms | ActiveRecord: 5.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:12:18') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (11.6ms) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:12:18') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'cf8c0811e927995fb5095b75731bfbf2', '9902a1d22a141a826ae31b1c83cb928c', 16, '127.0.0.1', '2016-08-23 16:12:18')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 12  (0.5ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.3ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:12:18') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (5.6ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.1ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.2ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '75d72f9cdb94726d90ad95433b4d2341', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2016-08-23 16:12:18')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 14  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9f1fc1409e00640c8ffac3520d7f7172', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:12:18')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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` = 15  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 46ms (Views: 15.0ms | ActiveRecord: 7.7ms) Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:12:18') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:12:18') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:12:18') SQL (0.1ms) INSERT 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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.5ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.9ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:12:18') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 25 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:12:18') SQL (0.2ms) 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') SQL (0.2ms) 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:18')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:12:18') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 27, '2016-08-23 16:12:18') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b64492d591772789606a6124a233c76f', 'd95884a882a64501650fb8f9deae5104', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:18')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:18') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:12:18') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (27.6ms) 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  (17.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.8ms) CREATE 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  (13.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.9ms) 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  (10.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (12.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.9ms) 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  (11.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (37.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.7ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.2ms) CREATE 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  (13.1ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.7ms) 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  (12.2ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (31.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) 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 21ms (Views: 0.2ms | ActiveRecord: 1.9ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:12:54') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:12:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:12:54')  (0.4ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:12:54') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:12:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:12:54') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:12:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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' Request Load (0.8ms) 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 DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN  (1.7ms) BEGIN SQL (3.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.9ms) 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 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 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:12:54')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:12:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:12:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:12:54')  (6.3ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.4ms) 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 ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:12:54') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) 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:54')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:12:54') SQL (0.2ms) 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:54') SQL (6.0ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:12:54') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:12:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:12:54') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (7.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 11, 'test_holding', 'holding', '2016-08-23 16:12:54')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:12:54') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:12:54')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) 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:12:54 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:12:54') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '5e331517e0a00b39fa8a126c8607bfd1', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:12:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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://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  (12.7ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (2.4ms) 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) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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.4ms) Rendered /Users/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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:12:54') SQL (0.1ms) 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:54') SQL (0.1ms) 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') SQL (0.1ms) 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:12:54')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:12:54') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a8b8307ad22584b8672926cd02a93254', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2016-08-23 16:12:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:12:54' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.8ms) 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.3ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.7ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 63ms (Views: 27.4ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.7ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:12:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:12:54') SQL (0.8ms) INSERT 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') SQL (0.7ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (1.3ms) 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)  (0.7ms) BEGIN  (0.1ms) 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"} Request Load (1.6ms) SELECT `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 DispatchedService Load (1.7ms) 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  (2.4ms) BEGIN  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:54') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:12:54') SQL (0.2ms) INSERT 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') SQL (0.3ms) 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  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1facf7d4189dcee6196e7f42955d658b', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:12:55')  (8.5ms) COMMIT  (1.2ms) COMMIT  (0.3ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.9ms) COMMIT  (6.5ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:12:55') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:12:55') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4ccaa1e754fb776288681570a2d41b6f', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:12:55')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.4ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:12:55') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:12:55') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd25018c842a4fd0ecd52956330bd4356', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:12:55')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:12:55') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:12:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:12:55') SQL (0.1ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:12:55') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:12:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:12:55') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:12:55') SQL (0.1ms) 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:55') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:12:55') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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 16:12:55') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:12:55')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:12:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:12:55') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd444869c90e2f6c552b03c6c0bc83e76', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:12:55')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (14.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.4ms) 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  (16.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (36.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.3ms) CREATE 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  (11.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.7ms) 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  (12.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.3ms) CREATE 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  (10.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.0ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.0ms) 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  (12.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (11.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (10.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (30.1ms) CREATE 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  (11.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (26.5ms) 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  (11.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (10.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (13.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:13:29') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:13:29') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:29') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '3b5a5993806d1fc68308861255555cf8', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:13:29')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:13:29') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:13:29') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:13:29') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:13:29') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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 16:13:29')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:13:29') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:13:29')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:13:29') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:13:29')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.7ms) 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 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.6ms) BEGIN ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC SQL (1.7ms) 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 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:13:29') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:13:29')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.7ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.8ms) 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 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:13:29') SQL (5.8ms) 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')  (12.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (10.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (7.3ms) COMMIT  (1.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 16:13:29')  (0.6ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:13:29') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:13:29')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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 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) DispatchedService Load (0.6ms) 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 ----------------------------------------------------------------------------  (0.1ms) BEGIN Request Load (2.3ms) 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 SQL (0.4ms) 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/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  (0.2ms) BEGIN  (1.8ms) COMMIT SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:29')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:13:29') SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16 SQL (0.8ms) 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')  (0.7ms) COMMIT  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:29')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:13:29') SQL (0.2ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.6ms) 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  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 DispatchedService Load (0.5ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:13:29') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'ef1e7e4781d013db10864ee2ecd2ad3a', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 16:13:29')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:13:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (6.2ms) 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' DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:29' WHERE `dispatched_services`.`id` = 10  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.6ms) 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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 67ms (Views: 15.8ms | ActiveRecord: 5.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:13:29') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:13:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:13:30') SQL (0.3ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cf18d55ef98665af72561bb182517266', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 16:13:30')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:13:30') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (6.4ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:13:30') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9f3709f1ae7db305d1353d6d558af5a2', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:13:30')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:13:30') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:13:30') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:13:30') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:13:30') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:13:30') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:13:30') SQL (0.1ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.9ms) COMMIT Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:13:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:13:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:13:30') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (23.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.1ms) 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  (10.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (11.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.3ms) 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  (10.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.9ms) CREATE 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  (11.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.8ms) 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  (9.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (30.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (14.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.8ms) CREATE 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  (11.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.3ms) 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  (11.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (37.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (11.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (11.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:50') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:13:50') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.5ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:13:50') SQL (0.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:13:50') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '5c8c69378c986517ea8c0826f3109c60', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:13:50')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:50' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:13:50') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (5.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:13:50' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 60ms (Views: 14.3ms | ActiveRecord: 16.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:13:50') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:13:50') SQL (0.5ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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.4ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.4ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.6ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:13:51') SQL (0.6ms) 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')  (2.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'af69dd44015e6b7569afdf75402e5a08', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:13:51')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.3ms) 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 SQL (11.2ms) 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'  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:13:51') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3ea4a3455421446cafaa533ddce0be69', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:13:51')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:13:51') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3df592f9e2e0b54240921ceb031eb594', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:13:51')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 13  (0.1ms) BEGIN SQL (0.2ms) 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 13\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:13:51')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:13:51')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:13:51') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:13:51')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.3ms) 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 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  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:13:51') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:13:51')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------------------------------------------- DispatchedService Load (1.2ms) 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 Request Load (1.9ms) 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  (0.2ms) BEGIN  (2.5ms) BEGIN SQL (1.6ms) 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:51' WHERE `dispatched_services`.`id` = 14 SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:13:51')  (0.7ms) BEGIN SQL (1.2ms) 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') SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (0.6ms) COMMIT  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:13:51')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:13:51')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) 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' Request Load (0.8ms) 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 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:13:51') SQL (0.8ms) 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:51' WHERE `dispatched_services`.`id` = 15 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:13:51')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:13:51')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) 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:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:13:51') SQL (0.2ms) 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:13:51') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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, 21, '2016-08-23 16:13:51') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (11.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 22 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:13:51') SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.8ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.0ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:13:51') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:13:51') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:13:51') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:13:51') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:13:51') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:13:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:13:51') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:13:51')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (14.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.0ms) 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  (11.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (34.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.8ms) CREATE 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  (11.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.4ms) 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  (10.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.3ms) CREATE 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  (11.0ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.0ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.0ms) 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  (10.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (11.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.7ms) CREATE 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  (12.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (11.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.6ms) 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  (13.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (13.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:14:46') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (2.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:14:46') SQL (0.1ms) 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 16:14:46') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:14:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:14:46') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 3 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:14:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:14:46') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '7982b81e700ff0ae2f2a66565d46b9dc', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:46')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:14:46') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:14:46') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:14:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:14:46') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:14:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:14:46') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) 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:14:46 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:46') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:14:46') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '92b9111ad4bd482800a7eb59380f08c0', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:14:46')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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:14:46' WHERE `dispatched_services`.`id` = 4  (1.0ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.5ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:14:47') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:14:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:14:47') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '61e981753271a92a02994c58e74b91e2', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:14:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:14:47' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 37ms (Views: 12.0ms | ActiveRecord: 5.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:14:47') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:14:47') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:14:47') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '40ed556c0b613e7d08b5ecb378facf71', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:14:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:14:47') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:14:47') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c82afde9af68207ae30fa8983f162009', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:14:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:14:47') SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:14:47') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bbdc72452b368af17a92c69adfdeffd4', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:14:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:14:47') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) 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.3ms | ActiveRecord: 0.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:14:47') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:14:47') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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 18  (0.1ms) BEGIN SQL (0.2ms) 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', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:14:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:14:47') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:14:47')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-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) DispatchedService Load (0.6ms) 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 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.6ms) BEGIN ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC SQL (1.5ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:14:47') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:14:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) 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' Request Load (0.9ms) 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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.7ms) 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` = 15 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:14:47')  (0.8ms) COMMIT SQL (0.3ms) 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')  (0.8ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:14:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:14:47') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:14:47')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:14:47') SQL (0.8ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:14:47')  (0.8ms) COMMIT SQL (0.4ms) INSERT 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')  (0.8ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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-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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:14:47') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:14:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:14:47') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:14:47') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.5ms) 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  (14.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (19.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (12.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.8ms) 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  (33.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.8ms) CREATE 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  (11.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (12.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (10.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (14.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (14.1ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.3ms) CREATE 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  (10.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (14.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.8ms) 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  (11.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (39.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (11.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (7.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (11.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.1ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:14:58') SQL (0.1ms) 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, 1, '2016-08-23 16:14:58') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:14:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:14:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:14:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:14:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '66ccd06942fbf8c49d223ecbb5a6b214', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:14:58')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:14:58') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:14:58') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (9.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:14:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:14:59') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:14:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:14:59') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:15:03')  (6.3ms) COMMIT DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (5.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:15:03') SQL (0.1ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.1ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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  (11.8ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:15:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:15:03') SQL (0.2ms) INSERT 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')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 9, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:15:08')  (0.3ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:15:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:15:08') SQL (0.2ms) 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')  (11.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (4.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:15:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:15:12') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (12.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Load (0.2ms) 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"} Request Load (0.4ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:15:12') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:15:12') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18  (0.1ms) BEGIN SQL (0.2ms) 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', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:12')  (6.4ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:12') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:15:12') SQL (0.1ms) INSERT 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')  (5.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:15:12')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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) DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:15:17') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:15:17')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Redirected to http://example.org Completed 302 Found in 15ms (ActiveRecord: 4.7ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:15:17') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:15:17')  (6.4ms) 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 --------------------------------------------------------------------------- Request Load (0.7ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:15:17') SQL (0.2ms) INSERT 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')  (14.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:15:17')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) 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' Request Load (0.9ms) 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 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:15:17') SQL (0.8ms) 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:15:17' WHERE `dispatched_services`.`id` = 13 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:15:17')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.9ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 18, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:15:17')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:15:17') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.4ms) 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.7ms) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:15:17') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bbd32fae078122122dc91b02ceab266c', 'a03fb1fb17f24f5ea845bf6c4450490b', 20, '127.0.0.1', '2016-08-23 16:15:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.3ms) 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 SQL (0.8ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:15:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:15:17') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:17' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.3ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 46ms (Views: 14.4ms | ActiveRecord: 5.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 22, '2016-08-23 16:15:17') SQL (0.2ms) INSERT 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') SQL (0.3ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.8ms) 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) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:15:17') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.6ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:22' WHERE `dispatched_services`.`id` = 18  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.7ms) 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.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:15:22' WHERE `dispatched_services`.`id` = 18  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 33  (0.3ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:15:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:15:23') SQL (0.2ms) INSERT 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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) 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')  (1.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (6.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:15:28')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:28' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:15:28') SQL (0.2ms) INSERT 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')  (9.9ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:15:32')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:32' WHERE `dispatched_services`.`id` = 20  (6.3ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) CACHE (0.0ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:15:32' WHERE `dispatched_services`.`id` = 20  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:15:32')  (0.7ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:37' WHERE `dispatched_services`.`id` = 20  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000419\n' WHERE `service_responses`.`id` = 38  (0.3ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:38') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:15:38') SQL (0.2ms) 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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '04ec62b66dca6d661cb48f0cf6d02442', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:15:38')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (6.3ms) COMMIT  (0.3ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:43' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.5ms) 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 (1.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:15:43') SQL (0.2ms) INSERT 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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:15:47')  (2.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:15:47' WHERE `dispatched_services`.`id` = 22  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 [["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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 16:15:47')  (0.4ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.4ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 [["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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 13.7ms | ActiveRecord: 3.5ms) Request Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:15:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:15:47') SQL (0.2ms) 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')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (10.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.0ms) DROP DATABASE IF EXISTS `dummy_test`  (6.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (18.3ms) 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  (15.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (19.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.4ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.7ms) 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  (10.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (35.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (13.9ms) 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  (34.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (18.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (11.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.3ms) CREATE 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  (11.1ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.0ms) 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  (12.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (38.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:16:09') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:16:09') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:16:09') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 16:16:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ----------------------------------------------------------------- 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:16:09') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 4  (0.1ms) BEGIN SQL (0.2ms) 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 4\n', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:16:09') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:16:09')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:16:09') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (5.7ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 16:16:09')  (6.4ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 ServiceResponse Load (0.3ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:16:09' WHERE `dispatched_services`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:16:09') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:16:09')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------------------------------------------- Request Load (0.6ms) SELECT `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 DispatchedService Load (0.5ms) 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  (2.1ms) BEGIN  (1.7ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.7ms) 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 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:16:09')  (0.8ms) COMMIT SQL (0.3ms) INSERT 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')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:16:09')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:16:09') SQL (0.3ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:16:09')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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 ---------------------------------------------------------------------------- Request Load (2.0ms) 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'  (0.8ms) BEGIN DispatchedService Load (1.8ms) 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 SQL (2.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:16:09')  (0.8ms) BEGIN SQL (2.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:16:09') SQL (0.9ms) 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 SQL (0.1ms) INSERT 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')  (0.9ms) COMMIT  (0.4ms) COMMIT  (0.7ms) BEGIN  (1.2ms) BEGIN SQL (7.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16 SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.8ms) COMMIT  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 16:16:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:16:09') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:16:09')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:16:09') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) 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  (0.7ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:16:09') SQL (0.2ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.3ms) COMMIT ServiceResponse Load (0.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:09')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:16:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:16:09') SQL (0.1ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:16:09') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.5ms) 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 (2.0ms) DispatchedService Load (3.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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 (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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:16:10') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '75bd692ae12f003e270986629242671f', 'a03fb1fb17f24f5ea845bf6c4450490b', 16, '127.0.0.1', '2016-08-23 16:16:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:16:10') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 58ms (Views: 14.3ms | ActiveRecord: 16.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:16:10') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.6ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:16:10') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:16:10') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '89be99406e3379ae5d1ebf14e2407e01', '9902a1d22a141a826ae31b1c83cb928c', 20, '127.0.0.1', '2016-08-23 16:16:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (5.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 16  (6.0ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.5ms) 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.8ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.7ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:16:10') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '0699860fb16d66689bafb34ce67bbe10', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:16:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000419\n' WHERE `service_responses`.`id` = 32  (0.4ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.3ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:16:10') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:16:10')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 [["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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:16:10') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4679bcb24b8a53f446fef38eabb266af', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:16:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:16:10' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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) CACHE (0.0ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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) DispatchedService Load (0.5ms) 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.0ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 3.6ms)  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:16:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:16:10') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:16:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:16:10') SQL (0.1ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:16:10') SQL (0.1ms) 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:16:10') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:16:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:16:11') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:16:11') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:16:11')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:16:11') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 16:16:11') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7212544181ecb83648cafa782c64a172', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:16:11')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (18.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.5ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.2ms) 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  (14.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (15.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.4ms) CREATE 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  (10.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.4ms) 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  (12.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.9ms) CREATE 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  (12.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (30.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (14.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.1ms) CREATE 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  (11.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.1ms) 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  (11.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (40.1ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (11.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:17:53') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.3ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.5ms) 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) Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:17:54') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '573829a2260fe82031a514f7877b32f9', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:17:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.2ms) BEGIN SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.7ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 2  (6.1ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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 (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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:17:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:17:54' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 47ms (Views: 14.6ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 DispatchedService Load (0.2ms) 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.3ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.8ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:17:54') SQL (0.1ms) 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')  (4.9ms) COMMIT  (0.6ms) BEGIN SQL (0.2ms) 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', '639ef5dada75b8465df9c84903744dab', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:17:54')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:17:54') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:17:54') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f8d695ff60792bc47bb6b09d72aeb67d', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:17:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:17:54') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:17:54') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:17:54') SQL (0.3ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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:17:54') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '348311b16556b225436b533c0b8c1e3e', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2016-08-23 16:17:54')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:17:54') SQL (0.1ms) 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, 12, '2016-08-23 16:17:54') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2016-08-23 16:17:54') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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 16:17:54') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 ServiceResponse Load (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:17:54') SQL (0.1ms) 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')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (10.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:17:54') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 14  (0.1ms) BEGIN SQL (0.1ms) 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', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:17:54')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:17:54') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:17:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (1.4ms) 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' ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (1.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:17:54')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) 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' Request Load (0.5ms) 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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.7ms) 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` = 15 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:17:54')  (0.9ms) COMMIT SQL (0.3ms) 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')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:17:54')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:17:54') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:17:54')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.0ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.7ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:17:54') SQL (0.8ms) 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 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:17:54')  (0.6ms) COMMIT  (0.5ms) BEGIN SQL (1.2ms) 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') SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 23  (0.8ms) COMMIT  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:17:54') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.1ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:17:54') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:17:54') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:17:54')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:17:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:17:54') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (17.3ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.8ms) 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  (10.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (12.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.9ms) 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  (10.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.3ms) CREATE 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  (12.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (7.9ms) 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  (10.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (30.8ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (10.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (28.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (22.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (15.5ms) 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  (15.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (43.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (17.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (16.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (16.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (14.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (15.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (15.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (16.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:18:21') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:18:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:18:21') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:18:22') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:18:22') SQL (0.1ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:18:22') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:18:22') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (6.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:18:22') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:18:22') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) 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:18:22 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:18:22') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8568f3017e94eed2a6b492fb44789d88', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:18:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:18:22' WHERE `dispatched_services`.`id` = 5  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:18:22') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:18:22')  (11.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:18:22') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '49c2fa2d98ee3677799918204b1cf354', 'bc13b80c2923ce2cbe0c8347141587a7', 11, '127.0.0.1', '2016-08-23 16:18:22')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:18:22' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 41ms (Views: 12.8ms | ActiveRecord: 5.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2016-08-23 16:18:22') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:18:22') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '74659ac28b2f4a8ed7a7d73a794ac23c', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:18:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:18:22') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (6.2ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:18:22') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '00c7d3d5de22b71f5d2e15c72bf53add', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:18:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:18:22') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:18:22') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '85a3ea1703185f999a8586461d40c5c9', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:18:22')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:18:22') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 18 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 16:18:22') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3b315716eaa2295787dbea0e514a9cf7', 'd95884a882a64501650fb8f9deae5104', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:18:22')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:18:22') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:18:22') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:18:22') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:18:22')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) 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.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:18:22') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:18:22')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:18:22') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:18:22')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:22') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:18:22') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:18:22')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.7ms) 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 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.5ms) BEGIN ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC SQL (1.4ms) 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:18:22' WHERE `dispatched_services`.`id` = 17  (12.1ms) COMMIT  (0.2ms) BEGIN SQL (0.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (5.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:18:23') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:18:23')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.8ms) SELECT `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 DispatchedService Load (0.4ms) 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  (2.0ms) BEGIN  (1.8ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23') SQL (0.7ms) 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 SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:18:23')  (0.8ms) COMMIT SQL (0.4ms) INSERT 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')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:18:23')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:18:23') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:18:23')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 12ms (Views: 0.3ms | ActiveRecord: 2.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:18:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:18:23') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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%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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.5ms) 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  (12.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (36.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.7ms) CREATE 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  (12.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.6ms) 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  (11.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (11.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (10.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.5ms) 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  (11.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (27.9ms) CREATE 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  (11.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.1ms) 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  (11.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:19:15') SQL (0.1ms) INSERT 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') SQL (0.3ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (5.6ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.5ms) 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.8ms) DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:19:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:19:15') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '080acdb778181ae0243f323be9dbe8dd', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2016-08-23 16:19:15')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:15' WHERE `dispatched_services`.`id` = 3  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:19:15') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:15' WHERE `dispatched_services`.`id` = 4  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 58ms (Views: 27.4ms | ActiveRecord: 5.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) 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  (0.3ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2016-08-23 16:19:15') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.2ms) 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) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.3ms) 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.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) DispatchedService Load (0.5ms) 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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:19:15') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6cb852ad87652bbc5970499df06a6490', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 16:19:15')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:19:15') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'b01d02dc1f636920734277a79b918c1c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:19:15')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:19:15') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:19:15') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '815b4ff130832495cf4f328e078559a0', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 16:19:15')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (5.9ms) COMMIT Umlaut: Threaded service raised exception. 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:19:15') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:19:15')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:19:15') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:19:15') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:19:15') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:19:15') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:19:15') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:19:15') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '082530bf00e5264528483d2b025cfbf5', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:19:15')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:19:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:19:15') SQL (0.1ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) 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, 21, '2016-08-23 16:19:15') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.2ms) COMMIT ServiceResponse Load (0.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:19:16') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:19:16') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:16')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 --------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:19:16') SQL (0.2ms) 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:16')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:16')  (5.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (12.2ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%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) DispatchedService Load (1.8ms) 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' ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.7ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:19:16') SQL (0.2ms) 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:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:16')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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.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' Request Load (0.9ms) 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 DispatchedService Load (0.5ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.7ms) 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` = 18 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:19:16')  (0.7ms) COMMIT SQL (0.3ms) 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')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:16')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:19:16') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:16')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:16') SQL (0.8ms) 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 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:19:16')  (0.8ms) COMMIT SQL (0.3ms) 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:16')  (0.2ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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%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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (36.2ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.8ms) 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  (12.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.2ms) CREATE 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  (10.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.4ms) 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  (11.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.1ms) CREATE 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  (10.0ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (10.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.6ms) 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  (10.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (14.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (11.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (10.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (11.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.1ms) CREATE 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  (32.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (11.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (11.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.4ms) 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  (11.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (13.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (9.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.3ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:19:29') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (6.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:19:29') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:19:29') SQL (0.2ms) 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:19:29') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.2ms) COMMIT Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:19:29') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:19:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:19:29') SQL (0.2ms) 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, 7, '2016-08-23 16:19:29') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 16:19:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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 16:19:29') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:19:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) 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:19:29') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) 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:19:29')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 9 LIMIT 1 Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:19:29') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:19:29')  (6.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:19:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:19:29') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:29') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:19:29') SQL (0.3ms) INSERT 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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.5ms) 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.8ms) DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (2.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.4ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 16:19:30') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a596dcc95fb4075b89608b4520be285f', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 16:19:30')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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 (14.8ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:19:30') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (11.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:19:30' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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.4ms) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 61ms (Views: 11.2ms | ActiveRecord: 22.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 16:19:30') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.4ms) SELECT `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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:19:30') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:19:30') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'b32104507583ba507ee2b1cdcaa06737', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 16:19:30')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:19:30') SQL (0.1ms) INSERT 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')  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:19:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'ac36ad9d3496fa932d01fa37667fd184', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:19:30')  (5.7ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (5.8ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.3ms) 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 SQL (1.0ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:19:30') SQL (0.1ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) 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')  (2.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:19:30') SQL (0.1ms) 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:30')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:19:30') SQL (0.1ms) 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:30')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:30')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:19:30') SQL (0.1ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (1.6ms) 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":"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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.6ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 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  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:19:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:30')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (0.9ms) SELECT `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 DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN  (1.5ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.7ms) 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 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:19:30')  (0.9ms) COMMIT SQL (0.2ms) 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:30')  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:30')  (0.2ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:19:30') SQL (0.2ms) 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:30')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (11.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:30')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 12ms (Views: 0.3ms | ActiveRecord: 2.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:19:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:19:30') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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%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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.6ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (12.4ms) 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  (13.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (19.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (15.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.6ms) CREATE 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  (12.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.6ms) 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  (13.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.6ms) CREATE 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  (13.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (14.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (37.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (15.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (12.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.7ms) 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  (11.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (15.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (16.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:20:40') SQL (0.2ms) 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 16:20:40') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) 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:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 3 LIMIT 1 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:20:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:20:40') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '3e408d16b848b2f3ed511887319f389f', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 16:20:40')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:20:40') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:20:40') SQL (0.1ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:20:40') SQL (0.1ms) 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')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (5.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.4ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 9  (0.1ms) BEGIN SQL (0.2ms) 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 9\n', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:20:40') SQL (0.1ms) INSERT 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')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:20:40')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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%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 --------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:20:40') SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:20:40')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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) DispatchedService Load (0.7ms) 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 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.7ms) BEGIN ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC SQL (1.6ms) 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 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  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:20:40') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:20:40')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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' Request Load (1.0ms) SELECT `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 DispatchedService Load (0.4ms) 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  (2.1ms) BEGIN  (1.8ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.7ms) 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 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:20:40')  (0.7ms) COMMIT SQL (0.2ms) INSERT 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')  (0.1ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:20:40')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 16:20:40')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 13ms (Views: 0.4ms | ActiveRecord: 2.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:20:40') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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%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) Request Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:20:40') SQL (0.2ms) 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') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.4ms) COMMIT  (7.4ms) BEGIN SQL (0.2ms) 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:20:40')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (6.2ms) COMMIT  (0.2ms) BEGIN  (0.4ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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"} Request Load (0.6ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:20:40') SQL (0.2ms) INSERT 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')  (0.4ms) COMMIT  (0.6ms) BEGIN SQL (0.4ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (12.2ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 DispatchedService Load (0.6ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.4ms) 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.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) 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 (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)  (0.1ms) BEGIN  (0.2ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:20:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:20:41') SQL (0.1ms) 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') SQL (0.2ms) INSERT 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') SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c9026fc2a87e23b9f45c8e81c3b34b6c', 'a03fb1fb17f24f5ea845bf6c4450490b', 20, '127.0.0.1', '2016-08-23 16:20:41')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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' SQL (5.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.6ms) 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  (1.4ms) BEGIN  (1.5ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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') SQL (0.9ms) 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  (5.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 11  (9.6ms) COMMIT  (2.7ms) COMMIT  (0.7ms) BEGIN Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19 DispatchedService Load (0.8ms) 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)  (1.0ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:20:41') SQL (0.1ms) INSERT 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') SQL (0.1ms) 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') SQL (0.1ms) INSERT 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')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:20:41' WHERE `dispatched_services`.`id` = 12  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 56ms (Views: 16.2ms | ActiveRecord: 6.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `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  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:20:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 22, '2016-08-23 16:20:41') SQL (0.2ms) INSERT 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') SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `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')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.4ms) 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.6ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT 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"} Request Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:20:41') SQL (0.1ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4046a35a22a212845e5b329cd7aca012', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:20:41')  (0.4ms) COMMIT  (0.1ms) BEGIN  (2.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (5.6ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (4.8ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.3ms) SELECT `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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:20:41') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:20:41') SQL (0.1ms) 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')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'd614f4a21b3ced034b6eabf24bc56c8d', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:20:41')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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"} Request Load (0.4ms) SELECT `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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:20:41') SQL (0.2ms) INSERT 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')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.2ms) 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')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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 38ms (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:20:41 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afae59f99fb90a6c813b744f95f021a9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:20:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'afae59f99fb90a6c813b744f95f021a9', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:20:41')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:20:41', '2016-08-23 16:20:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:20:41')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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.3ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22939644a2dc45ef3e61d834d3546864' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:20:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:20:41')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '22939644a2dc45ef3e61d834d3546864', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:20:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:20:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:20:41', '2016-08-23 16:20:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.1ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.9ms) 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  (14.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (15.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (13.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (15.4ms) 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  (11.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.3ms) CREATE 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  (11.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.7ms) 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  (12.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (14.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (27.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (7.7ms) CREATE 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  (12.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (17.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (11.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (38.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd0caf62d1d2d1351fe18bf97bbd776f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) 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:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT 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:21:50') SQL (0.1ms) 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:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 16:21:50') SQL (0.1ms) INSERT 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:21:50')  (5.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bd0caf62d1d2d1351fe18bf97bbd776f', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 16:21:50')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:21:50', '2016-08-23 16:21:50')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ee65342b9a02a65582ac6f100e5bf49' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:21:50') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 2, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 2, '2016-08-23 16:21:50') SQL (0.1ms) 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:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 2, '2016-08-23 16:21:50')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9ee65342b9a02a65582ac6f100e5bf49', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:21:50')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:21:50')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:21:50', '2016-08-23 16:21:50')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf98ce1a1e64d7b3d950cc920a0a616d' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:21:50') SQL (0.1ms) 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:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 16:21:50')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bf98ce1a1e64d7b3d950cc920a0a616d', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 16:21:50')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:21:50')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a760f07e81e68ce76298f7edc94c9c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:21:50') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:21:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:21:50')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2a760f07e81e68ce76298f7edc94c9c0', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2016-08-23 16:21:50')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:21:50')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 4, '2016-08-23 16:21:51', '2016-08-23 16:21:51')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:21:51' WHERE `dispatched_services`.`id` = 3  (12.4ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8574e67471765619d75844b8563e26b7' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:21:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:21:51') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 16:21:51')  (5.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8574e67471765619d75844b8563e26b7', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 16:21:51')  (6.5ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:21:51')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:21:55')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:21:55', '2016-08-23 16:21:55')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2a64f8885a18b8caf26bc4a3c38f672' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:21:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:21:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 16:21:55')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f2a64f8885a18b8caf26bc4a3c38f672', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2016-08-23 16:21:55')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:21:55')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', 6, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:22:00')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:22:00', '2016-08-23 16:22:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f2f7aa377563b510e4af7f85ede600a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:22:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:22:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 7, '2016-08-23 16:22:00')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2f2f7aa377563b510e4af7f85ede600a', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 7, '0.0.0.0', '2016-08-23 16:22:00')  (10.6ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:04')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:22:04', '2016-08-23 16:22:04')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 ----------------------------------------------------------------- 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.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ca401205ce5bbc07686c113286e335a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:04') SQL (4.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:22:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:22:04')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5ca401205ce5bbc07686c113286e335a', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:22:04')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 8  (0.1ms) BEGIN SQL (0.2ms) 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 8\n', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:22:04')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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%3A22%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 10ms (ActiveRecord: 1.5ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd48f9988527a41418ecc13063c6655f6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:22:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:22:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd48f9988527a41418ecc13063c6655f6', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:22:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:22:04')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 11  (0.1ms) BEGIN SQL (0.1ms) 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 11\n', 9, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:22:04')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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%3A22%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 7ms (ActiveRecord: 1.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94475e801fa99eeae2374f1d3d5e9cfd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:22:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:22:04')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '94475e801fa99eeae2374f1d3d5e9cfd', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:22:04')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:22:04')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 10, '2016-08-23 16:22:04', '2016-08-23 16:22:04')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:04')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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%3A22%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 Completed 303 See Other in 13ms (ActiveRecord: 2.2ms) DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:22:09' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '102dcafb6ae40b2b4f00e9943d67855a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '102dcafb6ae40b2b4f00e9943d67855a', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:09')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2016-08-23 16:22:09', '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:22:09')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://example.org Completed 302 Found in 18ms (ActiveRecord: 4.5ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc2884baceffb0ad569f7da5b2a49567' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:22:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:22:09')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bc2884baceffb0ad569f7da5b2a49567', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:22:09')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:22:09')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3246867fa5b95ef2ca40a7a17d20c01' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:22:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e3246867fa5b95ef2ca40a7a17d20c01', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:22:09')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:22:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 16:22:09', '2016-08-23 16:22:09')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) 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.6ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://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' Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a92aeba75a395c7698b0acf60761357d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.0ms) BEGIN  (1.7ms) BEGIN SQL (2.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:22:09') SQL (0.8ms) 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:22:09' WHERE `dispatched_services`.`id` = 9 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:22:09')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:22:09')  (0.6ms) BEGIN  (1.0ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a92aeba75a395c7698b0acf60761357d', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:22:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:22:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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%3A22%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.1ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7f1a181637fb67b6f8a15c272621243' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:22:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:22:09')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c7f1a181637fb67b6f8a15c272621243', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 16:22:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:09')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 16:22:09', '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:09 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (7.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9206f0d3b331568bab8e5795c195b84b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:22:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9206f0d3b331568bab8e5795c195b84b', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 16, '2016-08-23 16:22:09', '2016-08-23 16:22:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:09')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:22:09' WHERE `dispatched_services`.`id` = 11  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.5ms) 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.7ms) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (2.3ms) 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 (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.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/_fulltext.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 (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.3ms) Rendered /Users/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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (1.2ms) 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 (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 (5.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 (60.7ms) Permalink Load (0.2ms) 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 (12.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.5ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 323ms (Views: 252.9ms | 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:22:10 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ffdcdc000af422754f01ef7ef2bfe83' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 17, '2016-08-23 16:22:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 17, '2016-08-23 16:22:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 17, '2016-08-23 16:22:10') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 17, '2016-08-23 16:22:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '2ffdcdc000af422754f01ef7ef2bfe83', 'a03fb1fb17f24f5ea845bf6c4450490b', 17, '127.0.0.1', '2016-08-23 16:22:10')  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 16:22:10', '2016-08-23 16:22:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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=ti%3D%22some+book%22', '2016-08-23 16:22:10')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:10' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.4ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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.5ms) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 69ms (Views: 16.0ms | 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:22:10 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0695a39f26c04e4bb6fa3f1e7ac364b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 18, '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 18, '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 18, '2016-08-23 16:22:10')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd0695a39f26c04e4bb6fa3f1e7ac364b', 'bc13b80c2923ce2cbe0c8347141587a7', 18, '127.0.0.1', '2016-08-23 16:22:10')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:22:10', '2016-08-23 16:22:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:10' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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 (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_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.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) DispatchedService Load (0.4ms) 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.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.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.9ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 50ms (Views: 16.9ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a103114b3f5bb5bfe53d26b3d029bca8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:22:10') SQL (0.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2016-08-23 16:22:10') SQL (0.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 19, '2016-08-23 16:22:10') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 16:22:10')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a103114b3f5bb5bfe53d26b3d029bca8', '318e542032e1812e600e07efbdb1dfcc', 19, '0.0.0.0', '2016-08-23 16:22:10')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 19, '2016-08-23 16:22:10', '2016-08-23 16:22:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=19" for 127.0.0.1 at 2016-08-23 12:22:10 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"19"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.7ms) 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.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.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.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.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.6ms) Rendered /Users/barnabyalter/.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.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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/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 (19.0ms) Permalink Load (0.3ms) 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 (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.7ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 36ms (Views: 23.1ms | 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:22:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '565aa33b66a7961829bd56ec85df39f1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:10') SQL (0.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:22:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:22:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '565aa33b66a7961829bd56ec85df39f1', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:22:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:22:10', '2016-08-23 16:22:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:10')  (0.2ms) COMMIT 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:22:13' WHERE `dispatched_services`.`id` = 8  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 16  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:22:15')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:15' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 [["id", 20]] 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 (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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.4ms) 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.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.0ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4884ms (Views: 19.4ms | ActiveRecord: 6.5ms) Started GET "/borrow_direct/BorrowDirect/20?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:22:15 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:22:15' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:15')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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%3A22%3A15-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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:22:16' WHERE `dispatched_services`.`id` = 15  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.3ms) COMMIT 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%3A22%3A15-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:22:16 -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:22:15-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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.2ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 2.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:22:16 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e672507929eaafaaea22d44aa485dcb' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:22:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:22:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 21, '2016-08-23 16:22:16')  (12.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '6e672507929eaafaaea22d44aa485dcb', '9902a1d22a141a826ae31b1c83cb928c', 21, '127.0.0.1', '2016-08-23 16:22:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:22:16', '2016-08-23 16:22:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 21, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:22:20')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.4ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:20' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.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.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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.7ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4310ms (Views: 13.2ms | ActiveRecord: 17.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e6cd700dfb2834ed6eb6b3da8e614b9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:22:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 16:22:20')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '3e6cd700dfb2834ed6eb6b3da8e614b9', '1f2487b5ab29a0f58587335258d7f8e0', 22, '127.0.0.1', '2016-08-23 16:22:20')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:22:20', '2016-08-23 16:22:20')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:20')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 22, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:22:25')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:25' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 [["id", 22]] 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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.3ms) 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.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.5ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4629ms (Views: 14.3ms | ActiveRecord: 18.6ms) Started GET "/borrow_direct/BorrowDirect/22?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:22:25 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:22:25' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:22:25')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://www.example.com/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%3A22%3A25-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.5ms) DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:30' WHERE `dispatched_services`.`id` = 17  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000421\n' WHERE `service_responses`.`id` = 32  (0.4ms) COMMIT Started GET "/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%3A22%3A25-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:22:30 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"22", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T12:22:25-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.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.3ms) Rendered /Users/barnabyalter/.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) Rendered /Users/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.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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 (3.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.7ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 26ms (Views: 15.8ms | ActiveRecord: 3.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:30 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f7d70f86052d23077e9e6f8727a8b29' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:22:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:22:30')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1f7d70f86052d23077e9e6f8727a8b29', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:22:30')  (6.6ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:22:30', '2016-08-23 16:22:30')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:30')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:34')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:34' WHERE `dispatched_services`.`id` = 18  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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) CACHE (0.0ms) 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 (2.9ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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 (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 (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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 (17.9ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4629ms (Views: 17.7ms | ActiveRecord: 19.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:22:35 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '630773763c87ceecab57f9a7d6c25439' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:22:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:22:35')  (10.1ms) COMMIT  (0.1ms) BEGIN SQL (3.0ms) 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', '630773763c87ceecab57f9a7d6c25439', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:22:35')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:22:35', '2016-08-23 16:22:35')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:39')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:39' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.3ms) 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.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.6ms) Rendered /Users/barnabyalter/.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.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 [["id", 24]] 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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (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 (16.6ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4556ms (Views: 17.0ms | ActiveRecord: 19.1ms) Started GET "/borrow_direct/BorrowDirect/24" for 127.0.0.1 at 2016-08-23 12:22:39 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:22:39')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A22%3A39-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=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%3A22%3A39-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:22:39 -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:22:39-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.3ms) 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.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/_section_heading.html.erb (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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 [["id", 24]] 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.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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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.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.4ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 26ms (Views: 15.5ms | ActiveRecord: 3.8ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '474af99a5a2427bed31dc9837ceda96c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 16:22:39')  (11.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '474af99a5a2427bed31dc9837ceda96c', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 16:22:39')  (4.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:39')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:22:39', '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3f45d558ec6c1e62cf52a75c7c4efb1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:22:39') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:22:39') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b3f45d558ec6c1e62cf52a75c7c4efb1', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:22:39')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:39')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:22:39', '2016-08-23 16:22:39')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00cf1e04c84312a3641a1391141a4135' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:39') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:22:39') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '00cf1e04c84312a3641a1391141a4135', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:39')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:39')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:22:39', '2016-08-23 16:22:39')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53a1a27576a1a0976f3fa75311815a2b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:22:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '53a1a27576a1a0976f3fa75311815a2b', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:22:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:39')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:39')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:22:39', '2016-08-23 16:22:39')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.5ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.1ms) 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  (13.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (39.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (19.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.7ms) CREATE 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  (11.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.8ms) 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  (12.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.4ms) CREATE 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  (11.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.4ms) 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  (11.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (37.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (14.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.5ms) CREATE 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  (11.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.6ms) 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  (11.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (38.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (15.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '277c1ca0c058fe3a78325a9b6568cff4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:22:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:22:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:22:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '277c1ca0c058fe3a78325a9b6568cff4', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:22:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:58')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:22:58', '2016-08-23 16:22:58')  (5.8ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd31a83bffbd613d3951d9300840b58c7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:58') SQL (5.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:22:58') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 16:22:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 16:22:58')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd31a83bffbd613d3951d9300840b58c7', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 16:22:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:22:58')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4fb11bdb58dcb9109a60cd93b9ed69cb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4fb11bdb58dcb9109a60cd93b9ed69cb', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 3, 'test_holding', 'holding', '2016-08-23 16:22:59')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb4242c5c471ac486301e02fbcf338c9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:22:59') SQL (0.2ms) 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, 4, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 4, '2016-08-23 16:22:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'eb4242c5c471ac486301e02fbcf338c9', '62590701c6f35b45309577ef8c8c22b4', 4, '0.0.0.0', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e69cc63a5e07e13507f51aef5b381da0' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) 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:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 5, '2016-08-23 16:22:59') SQL (0.1ms) INSERT 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:22:59') SQL (0.1ms) 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:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 5, '2016-08-23 16:22:59') SQL (0.2ms) INSERT 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:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'e69cc63a5e07e13507f51aef5b381da0', '06d451b80bf9fe3ce6849a48c98522d7', 5, 'info:sid/google', '0.0.0.0', '2016-08-23 16:22:59')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9b55ebaac7b1705b46b08cbe85ca872' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 6, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 6, '2016-08-23 16:22:59') SQL (0.1ms) 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, 6, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 6, '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd9b55ebaac7b1705b46b08cbe85ca872', 'd95884a882a64501650fb8f9deae5104', 6, 'info:sid/google', '0.0.0.0', '2016-08-23 16:22:59')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a64d49ddb8d9b639adb2a7f154f4080' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:22:59')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7a64d49ddb8d9b639adb2a7f154f4080', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:22:59')  (6.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 7, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (5.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) 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:22:59' WHERE `dispatched_services`.`id` = 6  (6.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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.6ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (8.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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 (10.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) ServiceResponse Load (0.5ms) 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 (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.6ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.3ms) Rendered /Users/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.5ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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.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.4ms) Permalink Load (0.3ms) 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 (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.9ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 351ms (Views: 247.9ms | ActiveRecord: 27.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:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '51345b172e76c75d2c6eb3bba26d8b31' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 8, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 8, '2016-08-23 16:22:59')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '51345b172e76c75d2c6eb3bba26d8b31', 'a03fb1fb17f24f5ea845bf6c4450490b', 8, '127.0.0.1', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2016-08-23 16:22:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 7  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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.2ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 47ms (Views: 14.8ms | 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:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7fee7871d3fa08e509b4b2fb774f994d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 9, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 9, '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7fee7871d3fa08e509b4b2fb774f994d', 'bc13b80c2923ce2cbe0c8347141587a7', 9, '127.0.0.1', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.3ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 40ms (Views: 13.0ms | ActiveRecord: 5.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35b092e0cc83ee9f3a79eea753355850' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '35b092e0cc83ee9f3a79eea753355850', '318e542032e1812e600e07efbdb1dfcc', 10, '0.0.0.0', '2016-08-23 16:22:59')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 10, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=10" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.5ms) 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.6ms) Rendered /Users/barnabyalter/.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 (11.6ms) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 23ms (Views: 14.1ms | 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:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '829b73843ca96d3a1ed2ef16b6dbf82f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '829b73843ca96d3a1ed2ef16b6dbf82f', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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=a27vySyIUsrMdBtb951REo2uKf4 Body: {"PartnershipId":"DUMMY_BD_PARTNERSHIP_ID","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 34ms (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:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fd77049a07460e6330604a81d873657' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0fd77049a07460e6330604a81d873657', '9902a1d22a141a826ae31b1c83cb928c', 12, '127.0.0.1', '2016-08-23 16:22:59')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:22:59')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) DispatchedService Load (0.5ms) 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.0ms) Rendered /Users/barnabyalter/.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.8ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 70ms (Views: 13.6ms | ActiveRecord: 17.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6ceb73bada72cbe2f8d3b37bcd9b8d5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:22:59')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'a6ceb73bada72cbe2f8d3b37bcd9b8d5', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 16:22:59')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:59')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) 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 (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 (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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.3ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 61ms (Views: 17.8ms | ActiveRecord: 7.0ms) Started GET "/borrow_direct/BorrowDirect/13?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 12  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:22:59')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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%3A22%3A59-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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000421\n' WHERE `service_responses`.`id` = 15  (0.5ms) 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%3A22%3A59-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:22:59 -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:22:59-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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 (11.8ms) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 22ms (Views: 12.5ms | ActiveRecord: 3.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '834a7202eb92d09e47a26f6cd5deb96f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:22:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '834a7202eb92d09e47a26f6cd5deb96f', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:59')  (6.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) DispatchedService Load (0.3ms) 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 (14.9ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 69ms (Views: 15.4ms | 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:22:59 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0faf3e9a91910ba46eed60006958ee7b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:22:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:22:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '0faf3e9a91910ba46eed60006958ee7b', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:22:59')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:22:59', '2016-08-23 16:22:59')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:22:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:22:59')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:22:59' WHERE `dispatched_services`.`id` = 14  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.6ms) Rendered /Users/barnabyalter/.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) Request Load (0.3ms) 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.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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 53ms (Views: 14.5ms | ActiveRecord: 5.9ms) Started GET "/borrow_direct/BorrowDirect/15" for 127.0.0.1 at 2016-08-23 12:22:59 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:22:59')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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%3A22%3A59-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.5ms) 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%3A22%3A59-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:22:59 -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:22:59-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) 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.7ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.0ms) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 23ms (Views: 14.6ms | ActiveRecord: 3.4ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02de37e8fbbfdc32c01cf6d8a552b055' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:23:00')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '02de37e8fbbfdc32c01cf6d8a552b055', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:23:00')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd635c0a6ca9e553f0f81232dfc96395' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dd635c0a6ca9e553f0f81232dfc96395', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 17, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:23:00' WHERE `dispatched_services`.`id` = 16  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb553418fb12189a83d168b2540d7bb6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 18, '2016-08-23 16:23:00')  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cb553418fb12189a83d168b2540d7bb6', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 18, '0.0.0.0', '2016-08-23 16:23:00')  (6.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a37f9923b0fdd2a0f3b7391efe9d6663' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 19, '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a37f9923b0fdd2a0f3b7391efe9d6663', '9902a1d22a141a826ae31b1c83cb928c', 19, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 19, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:23:00')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 ----------------------------------------------------------------- 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"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '331739c4fcd9fd93308d72b87f31218e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '331739c4fcd9fd93308d72b87f31218e', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 20  (0.1ms) BEGIN SQL (0.2ms) 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 20\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:23:00')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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%3A23%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 7ms (ActiveRecord: 1.7ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee2832a03e688ffd047c4a852f3618fd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ee2832a03e688ffd047c4a852f3618fd', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 29  (0.1ms) BEGIN SQL (0.2ms) 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 29\n', 21, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:23:00')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A23%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 6ms (ActiveRecord: 1.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9d0541313c0e35bb612f45a410a12cc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:23:00')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f9d0541313c0e35bb612f45a410a12cc', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:23:00')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:23:00')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:23:00')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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%3A23%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 Completed 303 See Other in 11ms (ActiveRecord: 2.0ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (2.1ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:23:00' WHERE `dispatched_services`.`id` = 19  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28ab164a744651becd99e16745d27941' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:23:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '28ab164a744651becd99e16745d27941', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:23:00')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (23.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Redirected to http://example.org Completed 302 Found in 35ms (ActiveRecord: 25.9ms) --------------------------------------------------------------------------------- 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' Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f028b749fef84b52bf4080153be6259a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.2ms) BEGIN  (2.3ms) BEGIN SQL (2.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (1.1ms) 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:23:00' WHERE `dispatched_services`.`id` = 20 SQL (2.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:23:00') SQL (5.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:23:00')  (11.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 34  (15.9ms) COMMIT  (8.6ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f028b749fef84b52bf4080153be6259a', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:23:00')  (0.3ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7579bd42e0221e878025dbf6393daee2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7579bd42e0221e878025dbf6393daee2', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:23:00')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) 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.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":"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' Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cebeb0b0b079e76c6da280ce1689c6e9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.4ms) BEGIN  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:23:00') SQL (0.9ms) 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:23:00' WHERE `dispatched_services`.`id` = 21 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:23:00')  (0.8ms) COMMIT SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:23:00')  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 38  (0.8ms) BEGIN  (1.7ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cebeb0b0b079e76c6da280ce1689c6e9', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:23:00')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) Redirected to http://test.host/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%3A23%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 7ms (ActiveRecord: 1.1ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74ec9505d2b408c1bee1a072e8fcb67f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:23:00') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:23:00')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '74ec9505d2b408c1bee1a072e8fcb67f', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (27, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:23:00')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '172dfc625ec03798e459309018ed7c0c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:23:00') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:23:00')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '172dfc625ec03798e459309018ed7c0c', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:23:00')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:23:00')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:23:00', '2016-08-23 16:23:00')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.8ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (33.5ms) 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  (17.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (11.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (18.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (10.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.1ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.3ms) CREATE 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  (10.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.0ms) 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  (11.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (11.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (34.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (12.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.5ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.2ms) 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  (12.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (35.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fa057ecf334fae19e36a77e468aa674' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:25:15') SQL (0.1ms) 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, 1, '2016-08-23 16:25:15') SQL (5.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 1, '2016-08-23 16:25:15')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0fa057ecf334fae19e36a77e468aa674', '62590701c6f35b45309577ef8c8c22b4', 1, '0.0.0.0', '2016-08-23 16:25:15')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:15')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e15c5df19c5ea0b2ba4c210978ee8c80' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 16:25:15') SQL (0.2ms) INSERT 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:25:15') SQL (0.2ms) 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:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 16:25:15') SQL (0.1ms) INSERT 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:25:15')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e15c5df19c5ea0b2ba4c210978ee8c80', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:25:15')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:25:15', '2016-08-23 16:25:15')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3404ee1e90bd423accd5a5d682155b2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 16:25:15') SQL (0.1ms) 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:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 16:25:15')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c3404ee1e90bd423accd5a5d682155b2', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:25:15')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:15')  (0.8ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:25:15', '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84aea7333d8d9aa9dbff5ea94f04cf11' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 16:25:15') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '84aea7333d8d9aa9dbff5ea94f04cf11', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT 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:25:15')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:15')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:25:15', '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 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 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2aca3bd8d4ec38d1f0522bfc283ad0a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:25:15')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f2aca3bd8d4ec38d1f0522bfc283ad0a', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:25:15')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 5  (0.1ms) BEGIN SQL (0.2ms) 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 5\n', 5, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:25:15')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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%3A25%3A15-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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4acda508aac2ae7bbb430cc570852fa7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:25:15')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4acda508aac2ae7bbb430cc570852fa7', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:15')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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 6  (0.1ms) BEGIN SQL (0.2ms) 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 6\n', 6, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:25:15')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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%3A25%3A15-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 --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1e8e0cab1b875521f7cab4c652a14b3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:25:15')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c1e8e0cab1b875521f7cab4c652a14b3', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:25:15')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:25:15')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 16:25:15', '2016-08-23 16:25:15')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:15')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%3A25%3A15-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 17ms (ActiveRecord: 2.4ms) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.3ms) 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:25:15' WHERE `dispatched_services`.`id` = 4  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 9  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d10f368ec42f511023bad3061f7973e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:25:15') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:25:15')  (6.4ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6d10f368ec42f511023bad3061f7973e', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:25:16')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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:25:16')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:25:16')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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) --------------------------------------------------------------------------------- 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' Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f05e753ad6fc525e3cfa6eaf55f85de4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.8ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:16') SQL (0.7ms) 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:25:16' WHERE `dispatched_services`.`id` = 5 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:25:16')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:25:16')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f05e753ad6fc525e3cfa6eaf55f85de4', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:25:16')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:25:16')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec1ef12e5738aaf461739ac94b2893bc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ec1ef12e5738aaf461739ac94b2893bc', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:25:16')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:16')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 10, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (6.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:16')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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 18ms (Views: 0.3ms | ActiveRecord: 8.4ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca5cea9f7018c83a25d18d119023d57e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ca5cea9f7018c83a25d18d119023d57e', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:25:16')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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%3A25%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.3ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1677e7577f1c9c0c41a833303cd50880' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1677e7577f1c9c0c41a833303cd50880', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:16')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '238be3f60411fae92f5f33cd1beb46bc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '238be3f60411fae92f5f33cd1beb46bc', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:25:16')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e00eb60a766546de64f8b6ea2a3c2b7f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e00eb60a766546de64f8b6ea2a3c2b7f', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 14, 'test_holding', 'holding', '2016-08-23 16:25:16')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b0871f631549366c0b1d970992ec205' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6b0871f631549366c0b1d970992ec205', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:25:16' WHERE `dispatched_services`.`id` = 10  (12.6ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98ef632c20da0e2fd1ee1f91753a32a4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '98ef632c20da0e2fd1ee1f91753a32a4', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 16:25:16')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:25:16')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cada7f5da526965b847d9314e43a0eb8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cada7f5da526965b847d9314e43a0eb8', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2016-08-23 16:25:16')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:16')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90451fab21c9711a06c2b3efee030ed9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '90451fab21c9711a06c2b3efee030ed9', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 16:25:16')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:25:16')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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:25:16 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50f57cb617c08f5416754e4eb1e7613b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '50f57cb617c08f5416754e4eb1e7613b', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 19, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.1s 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:25:16' WHERE `dispatched_services`.`id` = 14  (0.7ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.4ms) 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.5ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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.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.5ms) ServiceResponse Load (7.6ms) 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 (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_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.5ms) Rendered /Users/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.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 (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 (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.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.1ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (66.9ms) Permalink Load (0.3ms) 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 (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.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.5ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 437ms (Views: 255.0ms | ActiveRecord: 16.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:25:16 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18828c82f45535b9d914e7fdde790c1c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 20, '2016-08-23 16:25:16') SQL (0.1ms) 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:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '18828c82f45535b9d914e7fdde790c1c', 'a03fb1fb17f24f5ea845bf6c4450490b', 20, '127.0.0.1', '2016-08-23 16:25:16')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:16')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:16' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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.6ms) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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 (14.8ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 72ms (Views: 16.6ms | 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 12:25:16 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd47e44ef80f9d1761124a5c1e726d2ff' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 21, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 21, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 21, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd47e44ef80f9d1761124a5c1e726d2ff', 'bc13b80c2923ce2cbe0c8347141587a7', 21, '127.0.0.1', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:16' WHERE `dispatched_services`.`id` = 16  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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.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.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.7ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 46ms (Views: 15.1ms | ActiveRecord: 6.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec326b58717ce34b5c1de8307bcfdfed' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.3ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 22, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 22, '2016-08-23 16:25:16') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ec326b58717ce34b5c1de8307bcfdfed', '318e542032e1812e600e07efbdb1dfcc', 22, '0.0.0.0', '2016-08-23 16:25:16')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 22, '2016-08-23 16:25:16', '2016-08-23 16:25:16')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=22" for 127.0.0.1 at 2016-08-23 12:25:16 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"22"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 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' Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 DispatchedService Load (1.1ms) 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 ReferentValue Load (2.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)  (0.5ms) BEGIN  (2.6ms) BEGIN SQL (1.2ms) 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:25:16' WHERE `dispatched_services`.`id` = 6  (1.6ms) COMMIT  (0.7ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (1.3ms) BEGIN Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 SQL (1.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15 DispatchedService Load (1.2ms) 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 (2.5ms)  (2.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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 (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 (7.0ms) ServiceResponse Load (0.3ms) 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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.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 (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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/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 (26.5ms) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 52ms (Views: 27.6ms | ActiveRecord: 15.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:25:16 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8a28fdfc3be6ed3a4bf46dfed6c19fc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:25:16') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:25:16')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', 'e8a28fdfc3be6ed3a4bf46dfed6c19fc', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:25:17')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 (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.9ms) ServiceResponse Load (0.3ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.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.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.4ms) 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.1ms) Rendered /Users/barnabyalter/.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 (27.3ms) Permalink Load (0.2ms) 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 (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.3ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 124ms (Views: 26.5ms | ActiveRecord: 30.6ms) Started GET "/borrow_direct/BorrowDirect/23?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 18  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:17')  (6.0ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.4ms) 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%3A25%3A17-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 18ms (ActiveRecord: 8.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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:25:17' WHERE `dispatched_services`.`id` = 18  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 33  (0.4ms) 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%3A25%3A17-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:25:17 -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:25:17-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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 (16.8ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 29ms (Views: 17.0ms | ActiveRecord: 4.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d8014d7bbcf00ac89bb4b576cd94160' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:25:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:25:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 24, '2016-08-23 16:25:17')  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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', '5d8014d7bbcf00ac89bb4b576cd94160', '9902a1d22a141a826ae31b1c83cb928c', 24, '127.0.0.1', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.3ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:25:17')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 19  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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 (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 (13.0ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 66ms (Views: 14.6ms | ActiveRecord: 5.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e3060100de39f325b230912a30cbe37' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7e3060100de39f325b230912a30cbe37', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:25:17')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:17')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 20  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 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 (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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.2ms) 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.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.0ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 57ms (Views: 14.5ms | ActiveRecord: 6.7ms) Started GET "/borrow_direct/BorrowDirect/25?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 20  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:25:17')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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%3A25%3A17-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) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 20  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000421\n' WHERE `service_responses`.`id` = 38  (10.9ms) COMMIT 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%3A25%3A17-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:25:17 -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:25:17-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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.6ms) ServiceResponse Load (0.2ms) 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.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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (13.8ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 26ms (Views: 15.4ms | ActiveRecord: 3.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '618bd4b266c1937f06faea76846aa450' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '618bd4b266c1937f06faea76846aa450', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:25:17')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 21  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 54ms (Views: 13.1ms | 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:25:17 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ddc915bf98bd1c241391d5fcdf04f234' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:25:17') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:25:17')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ddc915bf98bd1c241391d5fcdf04f234', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:25:17')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:25:17' WHERE `dispatched_services`.`id` = 22  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 56ms (Views: 13.7ms | ActiveRecord: 6.6ms) Started GET "/borrow_direct/BorrowDirect/27" for 127.0.0.1 at 2016-08-23 12:25:17 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) 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 16:25:17')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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%3A25%3A17-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=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%3A25%3A17-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:25:17 -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:25:17-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.2ms) 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.6ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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.4ms) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 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.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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 (12.6ms) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 13.6ms | ActiveRecord: 3.2ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4a0f58859343941c173912aeb44f415' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:25:17') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:25:17')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e4a0f58859343941c173912aeb44f415', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:25:17')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:25:17')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:25:17', '2016-08-23 16:25:17')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (18.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.6ms) 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  (24.3ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (25.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.9ms) CREATE 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  (11.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.1ms) 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  (10.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.5ms) CREATE 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  (12.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (14.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.0ms) 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  (11.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (13.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.2ms) CREATE 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  (12.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (27.2ms) 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  (11.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (7.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (9.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (13.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1a1d55a54bbc9f40be3a2cbec73c84e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b1a1d55a54bbc9f40be3a2cbec73c84e', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 16:26:09')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:09')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca9f2a950c0b41399e6f822cb62c14ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ca9f2a950c0b41399e6f822cb62c14ff', '1f2487b5ab29a0f58587335258d7f8e0', 2, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ----------------------------------------------------------------- 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: 5.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60dd2c9043bc9ba65294ee3b94785450' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:26:09')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '60dd2c9043bc9ba65294ee3b94785450', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:26:09')  (6.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 3  (0.1ms) BEGIN SQL (0.2ms) 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 3\n', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:26:09')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A26%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 11ms (ActiveRecord: 1.7ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d1f9c668e9a0b0370058facb1d04381' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7d1f9c668e9a0b0370058facb1d04381', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:26:09')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:26:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 5  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:26:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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 --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ead013dd7b494b348267e6c83e8ce241' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:26:09')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ead013dd7b494b348267e6c83e8ce241', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:26:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 5, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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 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) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 DispatchedService Load (0.7ms) 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 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.2ms) 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:26:09' WHERE `dispatched_services`.`id` = 3  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8  (0.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ffb6ce4c85876ccf8570f75d498178d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6ffb6ce4c85876ccf8570f75d498178d', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:26:09')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) 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: 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' Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aff63a39df5ad61614d2505ee1af6ba0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.5ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.7ms) 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:26:09' WHERE `dispatched_services`.`id` = 4 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:26:09')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:26:09')  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'aff63a39df5ad61614d2505ee1af6ba0', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:26:09')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64988f9ea171f622dfb55e90dc0db2ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '64988f9ea171f622dfb55e90dc0db2ce', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:09')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:26:09')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) 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 ---------------------------------------------------------------------------- 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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7be87be57d5609d0b3233d45e430ab45' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:09') SQL (0.7ms) 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:26:09' WHERE `dispatched_services`.`id` = 5 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:26:09')  (0.8ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 16:26:09')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7be87be57d5609d0b3233d45e430ab45', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 16:26:09')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:26:09')  (0.4ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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.2ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20d6cba8ea1c5c451efd81ab460a2a7a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:26:09')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '20d6cba8ea1c5c451efd81ab460a2a7a', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:09')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e473fedcb3d08e266a8cacdcd40d782' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:26:09')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0e473fedcb3d08e266a8cacdcd40d782', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:26:09')  (6.5ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', 11, 'test_holding', 'holding', '2016-08-23 16:26:09')  (0.5ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec4d8ddfb2eb2a12ab13f114b4d5eb16' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:26:09')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ec4d8ddfb2eb2a12ab13f114b4d5eb16', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a51ad8cc9d333d353e006d2ebec4a076' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 16:26:09')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a51ad8cc9d333d353e006d2ebec4a076', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6207f2de0fed0cfd15ddf3956a501629' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:09') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6207f2de0fed0cfd15ddf3956a501629', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2016-08-23 16:26:09')  (0.7ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6a547f3a2dffb6f559cc295b1cdc68d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c6a547f3a2dffb6f559cc295b1cdc68d', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '244bc1d3c0aec3b0fc330b853306372c' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 16, '2016-08-23 16:26:09')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '244bc1d3c0aec3b0fc330b853306372c', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 16, '0.0.0.0', '2016-08-23 16:26:09')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.4ms) 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:26:09 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8eb4844e60d95e9f88258374000b5dd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:26:09') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:26:09')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c8eb4844e60d95e9f88258374000b5dd', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 16:26:09')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 17, '2016-08-23 16:26:09', '2016-08-23 16:26:09')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:09')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:09' WHERE `dispatched_services`.`id` = 9  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 DispatchedService Load (0.6ms) 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 (2.6ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.5ms) 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 (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.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.3ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.4ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.7ms) Permalink Load (0.3ms) 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 (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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 288ms (Views: 238.8ms | ActiveRecord: 9.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:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9502b0b2f97a6f9b95f2189e03a13ab4' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 18, '2016-08-23 16:26:10') SQL (0.1ms) 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:26:10')  (10.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9502b0b2f97a6f9b95f2189e03a13ab4', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:10' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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 (13.7ms) Permalink Load (0.4ms) 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 (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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 80ms (Views: 16.9ms | ActiveRecord: 34.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 12:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4933b6fcb62d3562a34e4175a2e3b12' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 19, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 19, '2016-08-23 16:26:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd4933b6fcb62d3562a34e4175a2e3b12', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 16:26:10')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:10' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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_display.html.erb (0.1ms) Rendered /Users/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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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 (28.2ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 59ms (Views: 30.5ms | ActiveRecord: 5.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '399c7c29640e3fa8eb6e649173980f73' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 20, '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '399c7c29640e3fa8eb6e649173980f73', '318e542032e1812e600e07efbdb1dfcc', 20, '0.0.0.0', '2016-08-23 16:26:10')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 20, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=20" for 127.0.0.1 at 2016-08-23 12:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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 (14.0ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 25ms (Views: 15.2ms | 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:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa63ea73103fb77a960cd99c05ff2938' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fa63ea73103fb77a960cd99c05ff2938', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:10' WHERE `dispatched_services`.`id` = 13  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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.6ms) Rendered /Users/barnabyalter/.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.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.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.4ms) Rendered /Users/barnabyalter/.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.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) DispatchedService Load (0.4ms) 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.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 (18.5ms) Permalink Load (0.7ms) 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 (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.2ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 61ms (Views: 22.1ms | ActiveRecord: 6.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b447a9347ed33939f6028d84db17c65' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:10') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 16:26:10')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '5b447a9347ed33939f6028d84db17c65', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 16:26:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:10' WHERE `dispatched_services`.`id` = 14  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.8ms) 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.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (2.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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 (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.9ms) ServiceResponse Load (0.7ms) 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.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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) 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.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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.6ms) 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 (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.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.9ms) Rendered /Users/barnabyalter/.rbenv/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.6ms) Permalink Load (0.7ms) 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.2ms)  (0.6ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 80ms (Views: 23.9ms | ActiveRecord: 16.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79e9b50e991bab2b2ff86af749f9476e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '79e9b50e991bab2b2ff86af749f9476e', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:10' WHERE `dispatched_services`.`id` = 15  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.6ms) 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.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 (5.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.8ms) ServiceResponse Load (0.4ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) DispatchedService Load (0.5ms) 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.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 (20.4ms) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 70ms (Views: 20.1ms | ActiveRecord: 9.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'abb00c1b1130f7ad7bd8d9e712e33a8d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'abb00c1b1130f7ad7bd8d9e712e33a8d', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:26:10')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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:26:10' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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.9ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 57ms (Views: 15.0ms | ActiveRecord: 8.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:26:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea636fef2e425de7949fd50eea313d54' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ea636fef2e425de7949fd50eea313d54', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:10')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:10' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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 (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.7ms) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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/.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.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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.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.6ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 50ms (Views: 15.3ms | ActiveRecord: 7.7ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed8dfdffa277098b3cb97660963c3180' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 26, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 26, '2016-08-23 16:26:10') SQL (0.1ms) 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, 26, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 26, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 26, '2016-08-23 16:26:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ed8dfdffa277098b3cb97660963c3180', 'd95884a882a64501650fb8f9deae5104', 26, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:10')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 16:26:10')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61ee2222d4fa39c8147967ac22cf7e33' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:26:10') SQL (0.1ms) 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, 27, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 27, '2016-08-23 16:26:10')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '61ee2222d4fa39c8147967ac22cf7e33', '62590701c6f35b45309577ef8c8c22b4', 27, '0.0.0.0', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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-23 16:26:10')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '909a90ce510016d6e3e25afcc104be56' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 28, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 28, '2016-08-23 16:26:10') SQL (0.1ms) INSERT 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 16:26:10') SQL (0.2ms) 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 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 28, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 28, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 28, '2016-08-23 16:26:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 28, '2016-08-23 16:26:10') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 28, '2016-08-23 16:26:10')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '909a90ce510016d6e3e25afcc104be56', '06d451b80bf9fe3ce6849a48c98522d7', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:10')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:26:10', '2016-08-23 16:26:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 28 LIMIT 1  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (12.8ms) DROP DATABASE IF EXISTS `dummy_test`  (0.2ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (24.1ms) 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  (20.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (20.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (17.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (14.1ms) CREATE 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  (14.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (14.8ms) 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  (14.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (19.3ms) CREATE 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  (25.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.8ms) 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  (11.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (11.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (11.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (14.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.9ms) 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  (36.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1962e8db8d521880000fc3ad4e1b7e7a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:26:33') SQL (0.2ms) 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, 1, '2016-08-23 16:26:33') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 1, '2016-08-23 16:26:33')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1962e8db8d521880000fc3ad4e1b7e7a', '62590701c6f35b45309577ef8c8c22b4', 1, '0.0.0.0', '2016-08-23 16:26:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:33')  (0.8ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '394dc7a8c43b1912970bf3f82af44793' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT 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:26:33') SQL (0.2ms) 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:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 16:26:33') SQL (0.2ms) INSERT 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:26:33')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '394dc7a8c43b1912970bf3f82af44793', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:33')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:26:33', '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2acb1e31bb63f1e7f40c8dad31ba022' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 3, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 3, '2016-08-23 16:26:33') SQL (0.1ms) 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:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 3, '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e2acb1e31bb63f1e7f40c8dad31ba022', 'd95884a882a64501650fb8f9deae5104', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:33')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:33')  (18.0ms) COMMIT DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:26:33', '2016-08-23 16:26:33')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:33 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2b137913d63b2b03303009ad7347527' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2016-08-23 16:26:33')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e2b137913d63b2b03303009ad7347527', '1f2487b5ab29a0f58587335258d7f8e0', 4, '127.0.0.1', '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 4, '2016-08-23 16:26:33', '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:33')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:33' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 DispatchedService Load (0.5ms) 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 (2.5ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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.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.7ms) ServiceResponse Load (0.3ms) 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.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.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.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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (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 (55.4ms) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 320ms (Views: 264.9ms | ActiveRecord: 7.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:26:33 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30151204389ebe4455ab8fe313cfe474' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 5, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 5, '2016-08-23 16:26:33')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '30151204389ebe4455ab8fe313cfe474', 'a03fb1fb17f24f5ea845bf6c4450490b', 5, '127.0.0.1', '2016-08-23 16:26:33')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:26:33', '2016-08-23 16:26:33')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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=ti%3D%22some+book%22', '2016-08-23 16:26:33')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:33' WHERE `dispatched_services`.`id` = 4  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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.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.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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (14.8ms) Permalink Load (0.3ms) 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 (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.3ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 51ms (Views: 17.2ms | 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:26:33 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0718dd85e59a35671e1ef139139a76cf' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 6, '2016-08-23 16:26:33') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 6, '2016-08-23 16:26:33') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 6, '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0718dd85e59a35671e1ef139139a76cf', 'bc13b80c2923ce2cbe0c8347141587a7', 6, '127.0.0.1', '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:26:33', '2016-08-23 16:26:33')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:33' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.4ms) Rendered /Users/barnabyalter/.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.3ms) Rendered /Users/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.6ms) Permalink Load (0.4ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 53ms (Views: 19.5ms | ActiveRecord: 6.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '147c52cc56fe0f99993e313565203541' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 7, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 7, '2016-08-23 16:26:34')  (12.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '147c52cc56fe0f99993e313565203541', '318e542032e1812e600e07efbdb1dfcc', 7, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 7, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=7" for 127.0.0.1 at 2016-08-23 12:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.9ms) 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.5ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.5ms) 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.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) ServiceResponse Load (0.5ms) 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.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.6ms) Rendered /Users/barnabyalter/.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.3ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.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.6ms) Rendered /Users/barnabyalter/.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_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (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.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 (19.0ms) Permalink Load (0.6ms) 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.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)  (0.5ms) BEGIN  (0.5ms) COMMIT Completed 200 OK in 33ms (Views: 20.7ms | ActiveRecord: 5.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '438927309e73ba38e6382efe93e5380f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:26:34')  (0.8ms) COMMIT  (0.6ms) BEGIN SQL (0.2ms) 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', '438927309e73ba38e6382efe93e5380f', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:26:34')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.3ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:34' WHERE `dispatched_services`.`id` = 7  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.6ms) 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.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (2.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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 (6.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) ServiceResponse Load (0.3ms) 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.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.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.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 (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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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/_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.6ms) Permalink Load (0.3ms) 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.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.7ms)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 71ms (Views: 21.9ms | ActiveRecord: 11.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '095003843b09204418e7d49d19dd0ff0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 9, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '095003843b09204418e7d49d19dd0ff0', '9902a1d22a141a826ae31b1c83cb928c', 9, '127.0.0.1', '2016-08-23 16:26:34')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:34' WHERE `dispatched_services`.`id` = 8  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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.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/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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 (14.7ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 55ms (Views: 14.6ms | ActiveRecord: 7.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fd4362abcfffc58f36bb8d4fa6b884f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 16:26:34')  (4.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '8fd4362abcfffc58f36bb8d4fa6b884f', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:34' WHERE `dispatched_services`.`id` = 9  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.5ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/.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.8ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 55ms (Views: 14.5ms | ActiveRecord: 12.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40a7d6eb3c46f67307e4cead472774f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '40a7d6eb3c46f67307e4cead472774f3', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:34' WHERE `dispatched_services`.`id` = 10  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.2ms) 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.8ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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 (13.7ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 46ms (Views: 15.0ms | ActiveRecord: 6.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:26:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ecc78cb7555f37688de8095fa9a8633' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '5ecc78cb7555f37688de8095fa9a8633', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:34' WHERE `dispatched_services`.`id` = 11  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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 (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.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.2ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 47ms (Views: 15.1ms | ActiveRecord: 7.7ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3240d8b3c411c5c7001aa64d8ea0236c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3240d8b3c411c5c7001aa64d8ea0236c', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2016-08-23 16:26:34')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 16:26:34')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c55f1fab2d5506776624881458381ff5' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 14, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c55f1fab2d5506776624881458381ff5', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 14, '0.0.0.0', '2016-08-23 16:26:34')  (6.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (12.1ms) COMMIT Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acc114bdd70d36141c276a00aa64f431' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'acc114bdd70d36141c276a00aa64f431', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '988f73422f777f18ac4ec21395890de8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '988f73422f777f18ac4ec21395890de8', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f9ce6024fd6c112eff2a7cab7ede54f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:26:34')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9f9ce6024fd6c112eff2a7cab7ede54f', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '32092c7b41606dfc5d73cc3e92442c80' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '32092c7b41606dfc5d73cc3e92442c80', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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.6ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b58100fae913b04f0b5c4f45716f793d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:26:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b58100fae913b04f0b5c4f45716f793d', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 17  (0.1ms) BEGIN SQL (0.2ms) 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 17\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:26:34')  (0.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b288c8b06ecbbbdcf94088636f2115f4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 16:26:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b288c8b06ecbbbdcf94088636f2115f4', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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.6ms) DispatchedService Load (0.6ms) 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 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.6ms) BEGIN ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC SQL (1.5ms) 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:26:34' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87792934a6edf20c67c049c49e4b8494' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 16:26:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '87792934a6edf20c67c049c49e4b8494', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://example.org Completed 302 Found in 10ms (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' Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f3a866ccd1afee0481d0f843d33aae7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.3ms) 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  (1.2ms) BEGIN  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.6ms) 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:26:34' WHERE `dispatched_services`.`id` = 14 SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:26:34')  (0.6ms) COMMIT SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:26:34')  (0.1ms) BEGIN  (1.0ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4f3a866ccd1afee0481d0f843d33aae7', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:26:34')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:26:34')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7ba8d177598913cf7f796367d0bbfe7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd7ba8d177598913cf7f796367d0bbfe7', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:34')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 9ms (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' Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b28a64cedcff9839856b6898c9374c26' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:34') SQL (0.7ms) 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:26:34' WHERE `dispatched_services`.`id` = 15 SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:26:34')  (0.8ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:26:34')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.1ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b28a64cedcff9839856b6898c9374c26', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:26:34')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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 6ms (ActiveRecord: 1.1ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64aaa2d83f2b3c35ba390c05c475a195' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:26:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '64aaa2d83f2b3c35ba390c05c475a195', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '876d0b640702feeb16fa4a6a0fba83e5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 16:26:34')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '876d0b640702feeb16fa4a6a0fba83e5', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:34')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4dfe5c069e25ae332027d1a9a04fd252' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 16:26:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 16:26:34')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4dfe5c069e25ae332027d1a9a04fd252', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2016-08-23 16:26:34')  (6.2ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (6.3ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8f75244415ced0050ab438f11bb3254' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 16:26:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd8f75244415ced0050ab438f11bb3254', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 28, 'test_holding', 'holding', '2016-08-23 16:26:34')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:34')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:26:34', '2016-08-23 16:26:34')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.4ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.6ms) 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  (38.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (17.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.4ms) CREATE 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  (11.3ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.1ms) 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  (10.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.5ms) CREATE 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  (13.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.4ms) 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  (10.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (36.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.1ms) CREATE 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  (13.1ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (10.1ms) 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  (10.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (13.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (12.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2d6a5c2e34ab6a2d1ded3975a62bb82' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) 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:26:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:26:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 16:26:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 16:26:55') SQL (0.1ms) INSERT 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:26:55') SQL (0.2ms) 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:26:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 16:26:55') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 16:26:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 16:26:55') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 16:26:55') SQL (0.2ms) INSERT 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:26:55')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e2d6a5c2e34ab6a2d1ded3975a62bb82', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:56')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2e10fd537cbdb04d125cde8c94dd290' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 2, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 2, '2016-08-23 16:26:56') SQL (0.2ms) 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:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 2, '2016-08-23 16:26:56')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f2e10fd537cbdb04d125cde8c94dd290', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 16:26:56')  (10.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4899ccc62d12a10bd7e09783a8b6e75c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:26:56') SQL (0.2ms) 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:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4899ccc62d12a10bd7e09783a8b6e75c', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 16:26:56')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22048eb75b2b44b001ec696527c2ba29' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '22048eb75b2b44b001ec696527c2ba29', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 16:26:56')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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:26:56')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f11f709a5dca3b457835bece2c00250' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0f11f709a5dca3b457835bece2c00250', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:56')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd449ac9ff12344258720105ae5304d4a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd449ac9ff12344258720105ae5304d4a', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:56')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7896a8f05f394f4fc31466612fdd159' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:26:56')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b7896a8f05f394f4fc31466612fdd159', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2016-08-23 16:26:56')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ace840b8cffde3d2a3c6294df290e4b1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'ace840b8cffde3d2a3c6294df290e4b1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (6.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:26:56' WHERE `dispatched_services`.`id` = 7  (11.4ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.5ms) 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.8ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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.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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.8ms) 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 (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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /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.6ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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 (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.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.5ms) Permalink Load (0.2ms) 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 (6.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.7ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 345ms (Views: 265.1ms | ActiveRecord: 20.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:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5bd41d106e9ee8924ec9c8666e606d22' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 16:26:56') SQL (0.2ms) INSERT 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:26:56')  (5.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '5bd41d106e9ee8924ec9c8666e606d22', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 16:26:56')  (12.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:56' WHERE `dispatched_services`.`id` = 8  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.4ms) 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.4ms) Rendered /Users/barnabyalter/.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.3ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.9ms) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 70ms (Views: 15.4ms | ActiveRecord: 25.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:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59de57b6cd25b9626603338b609da4d6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '59de57b6cd25b9626603338b609da4d6', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:26:56' WHERE `dispatched_services`.`id` = 9  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.4ms) 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.7ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.6ms) 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.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.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.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.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) 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 (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 (18.7ms) Permalink Load (0.2ms) 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.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.5ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 57ms (Views: 20.3ms | ActiveRecord: 7.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a73626123f651ce16099cb9734a8f9be' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:26:56') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a73626123f651ce16099cb9734a8f9be', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 16:26:56')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.5ms) 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.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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 (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.6ms) ServiceResponse Load (0.4ms) 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.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.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_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.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 (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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/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 (17.7ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 31ms (Views: 18.7ms | ActiveRecord: 4.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f67e9bb8c896e248c41306e958f8c1c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'f67e9bb8c896e248c41306e958f8c1c0', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:56' WHERE `dispatched_services`.`id` = 11  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.4ms) 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 (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 (1.0ms) ServiceResponse Load (0.4ms) 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.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.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.4ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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 (17.0ms) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 62ms (Views: 18.3ms | ActiveRecord: 6.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0a7d15e0f8b411172db4030f34488e3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', 'a0a7d15e0f8b411172db4030f34488e3', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:56' WHERE `dispatched_services`.`id` = 12  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.5ms) 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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.6ms) Rendered /Users/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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (14.4ms) Permalink Load (0.3ms) 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.3ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 50ms (Views: 16.3ms | ActiveRecord: 7.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2732f2b276c99d53d6b554c5923eb7de' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:26:56')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '2732f2b276c99d53d6b554c5923eb7de', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:26:56', '2016-08-23 16:26:56')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:56')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:56' WHERE `dispatched_services`.`id` = 13  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/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.0ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 48ms (Views: 16.5ms | ActiveRecord: 6.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:26:56 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f0307ac91f3938b564ec1d6e433649aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:56') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:26:56') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:26:56')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f0307ac91f3938b564ec1d6e433649aa', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:26:57')  (11.6ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:57' WHERE `dispatched_services`.`id` = 14  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.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.5ms) Rendered /Users/barnabyalter/.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.2ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 76ms (Views: 14.2ms | ActiveRecord: 25.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:26:57 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9855790a1144307f2e64380a499f118' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'd9855790a1144307f2e64380a499f118', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:57' WHERE `dispatched_services`.`id` = 15  (0.5ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.6ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 47ms (Views: 14.0ms | ActiveRecord: 8.0ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30482087fc66830c4b3fbb2ca1859080' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 16:26:57')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '30482087fc66830c4b3fbb2ca1859080', '9902a1d22a141a826ae31b1c83cb928c', 17, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '780b27c76457bf7e6fbd403ce5514327' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 18, '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '780b27c76457bf7e6fbd403ce5514327', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 18, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '780a9b4ddcd61c86ca275b2da3fe06ab' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '780a9b4ddcd61c86ca275b2da3fe06ab', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 16:26:57')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd22db6f0350055039db35a674010677' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dd22db6f0350055039db35a674010677', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4df379f7439087af4a0439129d8b55fa' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4df379f7439087af4a0439129d8b55fa', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:26:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ServiceResponse Load (0.2ms) 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"} Request Load (0.4ms) 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.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '566d32132c92d9941556d88a60e191ac' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 16:26:57')  (5.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '566d32132c92d9941556d88a60e191ac', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 16:26:57')  (10.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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.8ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3343f9f658d9c2364fb4f1a7c17457ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 16:26:57')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3343f9f658d9c2364fb4f1a7c17457ce', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (4.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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 8ms (ActiveRecord: 1.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5907ffbf943f504631ea0e55b3168f9d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 16:26:57')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5907ffbf943f504631ea0e55b3168f9d', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (1.1ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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%3A26%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: 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: 3.3ms) DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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:26:57' WHERE `dispatched_services`.`id` = 17  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 26  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b4ce1c94e27ce4e7dc223a94aa04e51' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:26:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b4ce1c94e27ce4e7dc223a94aa04e51', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 16:26:57')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.0ms) --------------------------------------------------------------------------------- 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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce5ce2c581563c8179d71d084580cf1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.7ms) 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:26:57' WHERE `dispatched_services`.`id` = 18 SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:26:57')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 16:26:57')  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ce5ce2c581563c8179d71d084580cf1f', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:26:57')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1494cb5184cd33b4e107c7c56b86bbf' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:26:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 16:26:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c1494cb5184cd33b4e107c7c56b86bbf', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 16:26:57', '2016-08-23 16:26:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:26:57')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ceaa5b9c850017e12e64c023e60ae4ca' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.1ms) BEGIN  (1.5ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:26:57') SQL (0.7ms) 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:26:57' WHERE `dispatched_services`.`id` = 19 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:26:57')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 16:26:57')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.6ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ceaa5b9c850017e12e64c023e60ae4ca', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 16:26:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:26:57')  (0.4ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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%3A26%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.3ms)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.7ms) 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  (12.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (12.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.8ms) CREATE 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  (12.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.3ms) 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  (22.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.7ms) CREATE 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  (10.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.3ms) 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  (34.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (14.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (33.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (11.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.2ms) CREATE 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  (9.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (10.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (7.8ms) 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  (9.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (37.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (10.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 20ms (Views: 0.2ms | ActiveRecord: 1.5ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a2d8e6520f34b261842ab759a644ed6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9a2d8e6520f34b261842ab759a644ed6', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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:27:47')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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%3A27%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 19ms (ActiveRecord: 2.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6fb175cdbc69b64f3665b6147e1bcf3e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6fb175cdbc69b64f3665b6147e1bcf3e', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:27:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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%3A27%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.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07804d585604c70cc8803ee650988ce6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '07804d585604c70cc8803ee650988ce6', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:27:47')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A27%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: 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 25ms (ActiveRecord: 3.5ms) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 DispatchedService Load (0.8ms) 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 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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:27:47' WHERE `dispatched_services`.`id` = 1  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2270c51232056654a35db50facd82149' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2270c51232056654a35db50facd82149', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:27:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Redirected to http://example.org Completed 302 Found in 12ms (ActiveRecord: 3.9ms) --------------------------------------------------------------------------------- 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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1332ca605797167388bd29875dbf7ffb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.5ms) 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  (2.1ms) BEGIN  (1.9ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.7ms) 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:27:47' WHERE `dispatched_services`.`id` = 2 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:27:47')  (1.0ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:27:47')  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.7ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1332ca605797167388bd29875dbf7ffb', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:27:47')  (6.2ms) COMMIT  (10.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:27:47')  (6.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.4ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 1.3ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f759bb7074163191382b492c94a2bbce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f759bb7074163191382b492c94a2bbce', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:27:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 14ms (Views: 0.4ms | ActiveRecord: 2.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c82176bd12261dafa30113f1bea511e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c82176bd12261dafa30113f1bea511e4', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:27:47')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:27:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%3A27%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 8ms (ActiveRecord: 1.3ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '51f5918d083392fc8da8df8ae10cf7c1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (9.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '51f5918d083392fc8da8df8ae10cf7c1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 16:27:47')  (0.7ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a018c2d69bc0bf37a86968e09e0c979' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8a018c2d69bc0bf37a86968e09e0c979', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (9, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64ccfdf9f463c4d8fb066b56f9180ae3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 16:27:47')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '64ccfdf9f463c4d8fb066b56f9180ae3', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.3ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0f1e7e3b9f344db2a689e66e3c3af9a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd0f1e7e3b9f344db2a689e66e3c3af9a', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be31922e76a327e23dd9328be55159b0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'be31922e76a327e23dd9328be55159b0', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:27:47')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.3ms) COMMIT ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e6202e6aecb4487cdae23245c85122e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:27:47') SQL (0.1ms) 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, 13, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 13, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2e6202e6aecb4487cdae23245c85122e', '62590701c6f35b45309577ef8c8c22b4', 13, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83e8a9836c7987cd6ea83433d745e219' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 14, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 14, '2016-08-23 16:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '83e8a9836c7987cd6ea83433d745e219', '06d451b80bf9fe3ce6849a48c98522d7', 14, 'info:sid/google', '0.0.0.0', '2016-08-23 16:27:47')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 14 LIMIT 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94acf2a7ac0641109e84d0bf6e141a76' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 15, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 15, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 15, '2016-08-23 16:27:47') SQL (0.1ms) 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, 15, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 15, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 15, '2016-08-23 16:27:47')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '94acf2a7ac0641109e84d0bf6e141a76', 'd95884a882a64501650fb8f9deae5104', 15, 'info:sid/google', '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2016-08-23 16:27:47')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5c0ba16fe41f2fc8054d959238ffd70' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e5c0ba16fe41f2fc8054d959238ffd70', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:27:47')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38c95d2232f648a1629e42cb23de9f95' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2016-08-23 16:27:47')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '38c95d2232f648a1629e42cb23de9f95', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47')  (0.4ms) COMMIT DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbf2e5f477747cacd9de2bd82551d189' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bbf2e5f477747cacd9de2bd82551d189', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:27:47')  (6.3ms) COMMIT DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (11.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41e037eb2880f2630fc3400a99ec1f93' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '41e037eb2880f2630fc3400a99ec1f93', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 16:27:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 19, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:47' WHERE `dispatched_services`.`id` = 14  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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:27:47 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f67407cdcf62edb29a395af779be6ca' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:27:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4f67407cdcf62edb29a395af779be6ca', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:27:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 16:27:47', '2016-08-23 16:27:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.4ms) 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 SQL (0.6ms) 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'  (0.8ms) BEGIN 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' DispatchedService Load (0.5ms) 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 SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:47')  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (2.6ms) 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:27:47' WHERE `dispatched_services`.`id` = 3 BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload:  (0.5ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.3ms) BEGIN DispatchedService Load (1.2ms) 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 SQL (1.4ms) INSERT 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 16:27:47')  (0.6ms) BEGIN  (1.7ms) COMMIT SQL (0.3ms) 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:27:47' WHERE `dispatched_services`.`id` = 15  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.3ms) 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.6ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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.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.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.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.0ms) Rendered /Users/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.6ms) Rendered /Users/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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.5ms) 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 (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.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.5ms) Permalink Load (0.2ms) 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.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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 321ms (Views: 262.7ms | ActiveRecord: 7.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:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19a5cef34b49bc8da64d11a9be568aa7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 16:27:48') SQL (0.1ms) 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:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '19a5cef34b49bc8da64d11a9be568aa7', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 16:27:48')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 69ms (Views: 14.9ms | ActiveRecord: 27.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:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d5536be05c4169c279cf99c72252cda' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 16:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9d5536be05c4169c279cf99c72252cda', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (10.3ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 42ms (Views: 12.4ms | ActiveRecord: 6.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f782f59f8d92aec6123a097c6cba0e3d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f782f59f8d92aec6123a097c6cba0e3d', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 16:27:48')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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 (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/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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.7ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.0ms | ActiveRecord: 3.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '977cba4fcd551c2ad2f4df4743763bb7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:27:48')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '977cba4fcd551c2ad2f4df4743763bb7', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:48')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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.5ms) ServiceResponse Load (0.3ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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 (5.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 (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_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.2ms) 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 (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 (18.7ms) Permalink Load (0.4ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 60ms (Views: 18.3ms | ActiveRecord: 7.3ms) Started GET "/borrow_direct/BorrowDirect/24?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:27:48')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A27%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 10ms (ActiveRecord: 2.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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:27:48' WHERE `dispatched_services`.`id` = 19  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35  (0.2ms) 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%3A27%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:27:48 -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:27: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.6ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.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.1ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 25ms (Views: 14.7ms | ActiveRecord: 4.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd468568aea11c9445ff60c9b792d5500' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', 'd468568aea11c9445ff60c9b792d5500', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (12.0ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.4ms) 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 SQL (5.4ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:48')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 20  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 77ms (Views: 14.3ms | ActiveRecord: 17.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab7d6b973eb31a2a087b231d94366138' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:27:48')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ab7d6b973eb31a2a087b231d94366138', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:27:48')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:48')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.4ms) 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 (1.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.3ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 51ms (Views: 13.8ms | ActiveRecord: 5.3ms) Started GET "/borrow_direct/BorrowDirect/26?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:27:48')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) 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%3A27%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 9ms (ActiveRecord: 2.6ms) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000421\n' WHERE `service_responses`.`id` = 40  (0.4ms) 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%3A27%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:27:48 -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:27: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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.6ms) Rendered /Users/barnabyalter/.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.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.0ms) DispatchedService Load (0.3ms) 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.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.4ms) Permalink Load (0.3ms) 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.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.1ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 3.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd00a33fbce402f45231eebcc572b2e8f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:27:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:27:48')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', 'd00a33fbce402f45231eebcc572b2e8f', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 16:27:48')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 22  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.2ms) 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.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 (15.0ms) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 56ms (Views: 14.1ms | ActiveRecord: 7.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:27:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63e34ca591e5abbb7e8107a689d5361d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:27:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:27:48')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '63e34ca591e5abbb7e8107a689d5361d', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 16:27:48', '2016-08-23 16:27:48')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:27:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:27:48')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:27:48' WHERE `dispatched_services`.`id` = 23  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.5ms) 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 (1.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.4ms) 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.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.1ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 51ms (Views: 13.1ms | ActiveRecord: 6.2ms) Started GET "/borrow_direct/BorrowDirect/28" for 127.0.0.1 at 2016-08-23 12:27:48 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:27:48')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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%3A27%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.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%3A27%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:27:48 -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:27: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.4ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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) Request Load (0.3ms) 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.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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.1ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 13.5ms | ActiveRecord: 3.5ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (19.4ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.0ms) 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  (15.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (18.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (15.8ms) CREATE 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  (23.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.1ms) 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  (13.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.7ms) CREATE 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  (11.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.9ms) 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  (11.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (30.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (17.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (20.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (13.4ms) CREATE 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  (16.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (16.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (18.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (12.7ms) 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  (16.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (10.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (31.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (14.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (8.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.1ms) 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: 5.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 21ms (Views: 0.2ms | ActiveRecord: 2.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a38b4e9c891cb17c3a70306d364008b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:28:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 16:28:23')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a38b4e9c891cb17c3a70306d364008b6', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 16:28:23')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) 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:28:23')  (6.0ms) COMMIT Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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%3A28%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 28ms (ActiveRecord: 8.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bebb2535aa4efe8f506f88a22b91108c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:28:23') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 16:28:23')  (4.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bebb2535aa4efe8f506f88a22b91108c', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 16:28:23')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:23')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.2ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:28:23')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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%3A28%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 --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b2d12cd0543ef2b967f593dc9361def' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:28:23') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 16:28:23')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8b2d12cd0543ef2b967f593dc9361def', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 16:28:23')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:28:23')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 16:28:23', '2016-08-23 16:28:23')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:23')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A28%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 Completed 303 See Other in 26ms (ActiveRecord: 4.0ms) DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:28:27' WHERE `dispatched_services`.`id` = 1  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee18cebd0e5671562a7762e3ae4fa4c0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 16:28:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 16:28:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ee18cebd0e5671562a7762e3ae4fa4c0', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 16:28:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 16:28:27')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 16:28:27', '2016-08-23 16:28:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:27')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Redirected to http://example.org Completed 302 Found in 14ms (ActiveRecord: 4.0ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5c63a0ca10e9f45b98f9bcd1f44f2e0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:28:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 16:28:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c5c63a0ca10e9f45b98f9bcd1f44f2e0', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 16:28:27')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:28:27')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:28:27')  (0.2ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 1.9ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2452525c6edc7f6d24fe85c9e0a0d311' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:28:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 16:28:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2452525c6edc7f6d24fe85c9e0a0d311', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 16:28:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:28:27')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (8.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:28:28')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 26ms (Views: 0.3ms | ActiveRecord: 10.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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f8265f8abc2cf21946486d51deb2086' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.7ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:28:28') SQL (0.8ms) 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:28:28' WHERE `dispatched_services`.`id` = 3 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:28:28')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 16:28:28')  (0.6ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.7ms) BEGIN  (1.7ms) COMMIT SQL (0.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6f8265f8abc2cf21946486d51deb2086', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 16:28:28')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:28:28')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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%3A28%3A28-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:28:28 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9e7093d77827ff69dbc365eb7cc778e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:28:28')  (5.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd9e7093d77827ff69dbc365eb7cc778e', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:28:28')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 8, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.4ms) 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 SQL (1.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:28')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:28:28' WHERE `dispatched_services`.`id` = 4  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.6ms) 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.9ms) DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (2.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.5ms) 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 (8.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.8ms) ServiceResponse Load (0.2ms) 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.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) Rendered /Users/barnabyalter/.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.3ms) Rendered /Users/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_heading.html.erb (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 (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_heading.html.erb (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.0ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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 (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) DispatchedService Load (0.3ms) 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 (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 (5.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.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 (69.8ms) Permalink Load (0.2ms) 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 (8.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 331ms (Views: 268.3ms | ActiveRecord: 14.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:28:28 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da260c2d0896a7b11c53c541497ef1a7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 9, '2016-08-23 16:28:28') SQL (0.2ms) INSERT 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:28:28')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'da260c2d0896a7b11c53c541497ef1a7', 'a03fb1fb17f24f5ea845bf6c4450490b', 9, '127.0.0.1', '2016-08-23 16:28:28')  (11.4ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:28')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:28' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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 (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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.2ms) Permalink Load (0.2ms) 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 (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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 67ms (Views: 13.1ms | ActiveRecord: 24.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:28:28 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53cda95940dcf987a31b77799b661093' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 10, '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 16:28:28') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 10, '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '53cda95940dcf987a31b77799b661093', 'bc13b80c2923ce2cbe0c8347141587a7', 10, '127.0.0.1', '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:28' WHERE `dispatched_services`.`id` = 6  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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.1ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 47ms (Views: 13.3ms | ActiveRecord: 6.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de4dc377e83e741c4af81fd050e35622' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 11, '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'de4dc377e83e741c4af81fd050e35622', '318e542032e1812e600e07efbdb1dfcc', 11, '0.0.0.0', '2016-08-23 16:28:28')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 11, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=11" for 127.0.0.1 at 2016-08-23 12:28:28 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.2ms) 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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.3ms) 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.2ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 24ms (Views: 15.2ms | ActiveRecord: 3.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:28:28 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2aa06c55ab4e52f797532b6d598f2cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:28') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:28:28') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 16:28:28')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'a2aa06c55ab4e52f797532b6d598f2cd', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 16:28:28')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 16:28:28', '2016-08-23 16:28:28')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:28')  (0.4ms) COMMIT 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:28:32' WHERE `dispatched_services`.`id` = 2  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:33')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:33' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.8ms) 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.4ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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 (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 (1.4ms) ServiceResponse Load (0.4ms) 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 (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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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 (7.0ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.3ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.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.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.0ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) 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.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 (30.3ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4770ms (Views: 32.4ms | ActiveRecord: 6.8ms) Started GET "/borrow_direct/BorrowDirect/12?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:28:33 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.6ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:28:33' WHERE `dispatched_services`.`id` = 8  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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:28:33')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) 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%3A28%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 Completed 303 See Other in 17ms (ActiveRecord: 3.8ms) 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:28:34' WHERE `dispatched_services`.`id` = 8  (1.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17  (0.4ms) 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%3A28%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 12:28:34 -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:28: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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.5ms) Rendered /Users/barnabyalter/.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 24ms (Views: 14.5ms | ActiveRecord: 4.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 12:28:34 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df19b780e0086096ad08a82f760955e4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:28:34') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:28:34') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 16:28:34')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'df19b780e0086096ad08a82f760955e4', '9902a1d22a141a826ae31b1c83cb928c', 13, '127.0.0.1', '2016-08-23 16:28:34')  (6.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 16:28:34', '2016-08-23 16:28:34')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:34')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 13, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:28:39')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:39' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.2ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.4ms) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4553ms (Views: 14.8ms | ActiveRecord: 18.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:28:39 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a974a2bd29cebf6397f0c7e1d0519ce1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:28:39') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 16:28:39')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a974a2bd29cebf6397f0c7e1d0519ce1', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 16:28:39')  (6.5ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 16:28:39', '2016-08-23 16:28:39')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:39')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:44')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:44' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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.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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4820ms (Views: 13.4ms | ActiveRecord: 18.6ms) Started GET "/borrow_direct/BorrowDirect/14?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:28:44 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:28:44' WHERE `dispatched_services`.`id` = 10  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:28:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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%3A28%3A44-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) DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:48' WHERE `dispatched_services`.`id` = 10  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000422\n' WHERE `service_responses`.`id` = 22  (0.3ms) COMMIT 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%3A28%3A44-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:28:48 -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:28:44-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.3ms) 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.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.2ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 13.5ms | ActiveRecord: 3.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:28:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6c2c5c7b38756312afc423651359427' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:48') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:28:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 16:28:48')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'd6c2c5c7b38756312afc423651359427', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 16:28:48')  (6.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 16:28:48', '2016-08-23 16:28:48')  (0.9ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:28:53')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:53' WHERE `dispatched_services`.`id` = 11  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 [["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.6ms) Rendered /Users/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.3ms) Rendered /Users/barnabyalter/.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.0ms) DispatchedService Load (0.3ms) 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.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.6ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4285ms (Views: 14.1ms | ActiveRecord: 19.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:28:53 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0581a6e2f83b7463ba4c705fb050e4f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:53') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:28:53') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 16:28:53')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '0581a6e2f83b7463ba4c705fb050e4f5', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2016-08-23 16:28:53')  (5.6ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 16:28:53', '2016-08-23 16:28:53')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:53')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:28:57')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:28:57' WHERE `dispatched_services`.`id` = 12  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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 (2.8ms) 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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.4ms) 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.4ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4429ms (Views: 14.7ms | ActiveRecord: 19.0ms) Started GET "/borrow_direct/BorrowDirect/16" for 127.0.0.1 at 2016-08-23 12:28:57 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:28:57')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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%3A28%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 8ms (ActiveRecord: 1.6ms) 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%3A28%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:28:57 -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:28: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 13.8ms | ActiveRecord: 3.5ms) Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1dd50ac4ca22bc7aaee9e7abff9a2983' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 16:28:57')  (5.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1dd50ac4ca22bc7aaee9e7abff9a2983', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 16:28:57')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a3b9299828e62dbd708914086b5af1c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3a3b9299828e62dbd708914086b5af1c', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9906237732dcf1ad0c5f5460d8584334' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:28:57') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:28:57') SQL (0.2ms) 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:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 19, '2016-08-23 16:28:57')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9906237732dcf1ad0c5f5460d8584334', '62590701c6f35b45309577ef8c8c22b4', 19, '0.0.0.0', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f121906775758da549a067996c345153' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 20, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 20, '2016-08-23 16:28:57') SQL (0.3ms) 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:28:57') SQL (0.1ms) 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:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 20, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 20, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 20, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 20, '2016-08-23 16:28:57') SQL (0.1ms) 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:28:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f121906775758da549a067996c345153', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 16:28:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2fe72d2fadd67aa6221647930b2a3e2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 21, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 21, '2016-08-23 16:28:57') SQL (0.1ms) 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, 21, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 21, '2016-08-23 16:28:57')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f2fe72d2fadd67aa6221647930b2a3e2', 'd95884a882a64501650fb8f9deae5104', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 16:28:57')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bb0a21bf6d56de2d08328a15c85b8e9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:28:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6bb0a21bf6d56de2d08328a15c85b8e9', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:28:57')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'test_holding', 'holding', '2016-08-23 16:28:57')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ffee6cfa1e4151f100d72f8debefb7b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:28:57')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1ffee6cfa1e4151f100d72f8debefb7b', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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-23 16:28:57')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb18e5940c9b5f572a5f5d6b69380d5c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bb18e5940c9b5f572a5f5d6b69380d5c', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 24, 'test_holding', 'holding', '2016-08-23 16:28:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 16:28:57', '2016-08-23 16:28:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3515ef69898fc66443d66a86054775f2' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:28:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:28:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:28:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3515ef69898fc66443d66a86054775f2', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2016-08-23 16:28:57')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:28:57')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:29:02')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 16:29:02', '2016-08-23 16:29:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c92c1badb27a5184b23c6b49140e62e3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:29:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:29:02')  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c92c1badb27a5184b23c6b49140e62e3', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 16:29:02')  (6.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:02')  (4.8ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:29:06')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 16:29:06', '2016-08-23 16:29:06')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1576434c599416ea5491ffa1821cefa2' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:29:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:29:06') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 27, '2016-08-23 16:29:06')  (12.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1576434c599416ea5491ffa1821cefa2', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 27, '0.0.0.0', '2016-08-23 16:29:06')  (5.0ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:06')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:29:10')  (1.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 16:29:10', '2016-08-23 16:29:10')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc707c4359c0a759e30225ef515763a9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:29:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:29:10')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fc707c4359c0a759e30225ef515763a9', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:29:10')  (5.2ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:10')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 28, '2016-08-23 16:29:11', '2016-08-23 16:29:11')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:29:11' WHERE `dispatched_services`.`id` = 23  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (15.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.1ms) 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  (12.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.4ms) CREATE 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  (10.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.8ms) 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  (11.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.1ms) CREATE 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  (11.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.1ms) 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  (11.5ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (11.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.6ms) CREATE 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  (11.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.8ms) 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  (11.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (14.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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:29:19 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3b9d616bee17aafec84bc557899e6d6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:19') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:29:19') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:29:19')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', 'b3b9d616bee17aafec84bc557899e6d6', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:29:20' WHERE `dispatched_services`.`id` = 1  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.6ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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 (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.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 (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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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 (56.3ms) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/umlaut/_header.html.erb (24.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 358ms (Views: 232.0ms | ActiveRecord: 15.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:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '702b2a7e31fc62e5c98edc4265c2bf2d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 16:29:20') SQL (0.1ms) 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:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '702b2a7e31fc62e5c98edc4265c2bf2d', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 16:29:20')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:29:20' WHERE `dispatched_services`.`id` = 2  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 (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.6ms) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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 (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 (13.4ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 51ms (Views: 15.8ms | 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:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50133a1cb7c6e6573cea2de6a0f7e644' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '50133a1cb7c6e6573cea2de6a0f7e644', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:29:20' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.3ms) 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.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_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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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 (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.6ms) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 45ms (Views: 14.6ms | ActiveRecord: 6.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87797c89e1eafac1a9ece2bef2554c98' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '87797c89e1eafac1a9ece2bef2554c98', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 12:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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.6ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.5ms) 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.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.3ms) Rendered /Users/barnabyalter/.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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.5ms) 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.1ms) Rendered /Users/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.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 (18.8ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 32ms (Views: 20.2ms | 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:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eafae866bbffae3f22fa487b146afcb7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'eafae866bbffae3f22fa487b146afcb7', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 16:29:20')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.3ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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, :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 46ms (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:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'efd1dd0ef73e797928ecf0c7eaa0b1b8' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', 'efd1dd0ef73e797928ecf0c7eaa0b1b8', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.5ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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, :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 43ms (ActiveRecord: 3.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f242b7c9e4053063b2e4a217754c6ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 16:29:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6f242b7c9e4053063b2e4a217754c6ac', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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, :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 37ms (ActiveRecord: 3.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c298cf5379ce2a53e0b16042db1210a7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'c298cf5379ce2a53e0b16042db1210a7', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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, :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_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:29:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4971df06fbb370e548c315f6d53f162b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:29:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '4971df06fbb370e548c315f6d53f162b', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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, :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: 3.2ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` 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"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '900aa31de4a3e40292063501e0dc0c4a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '900aa31de4a3e40292063501e0dc0c4a', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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:29:20')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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%3A29%3A20-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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7f12b2e7b304c342c42faf034f43896' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 16:29:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a7f12b2e7b304c342c42faf034f43896', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 16:29:20')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 16:29:20')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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%3A29%3A20-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 --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e23e6f5e7484ec1617f1025eaf4fa3d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8e23e6f5e7484ec1617f1025eaf4fa3d', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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%3A29%3A20-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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 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, :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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (1.6ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 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, :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:29:20' WHERE `dispatched_services`.`id` = 10  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03b60e43cf237d664c49549a84624ce0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '03b60e43cf237d664c49549a84624ce0', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:29:20')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54718314eba60ea5f66a352ef8b47a61' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.8ms) 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:29:20' WHERE `dispatched_services`.`id` = 11 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:29:20')  (0.9ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:29:20')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '54718314eba60ea5f66a352ef8b47a61', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:29:20')  (0.5ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40eb0639845501a0085c1c663faeaf4e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '40eb0639845501a0085c1c663faeaf4e', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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 10ms (Views: 0.3ms | ActiveRecord: 2.7ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST 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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53a856a30208b8835c74bf1a16e02aa3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.2ms) BEGIN  (1.8ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:29:20') SQL (1.0ms) 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:29:20' WHERE `dispatched_services`.`id` = 12 SQL (1.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:29:20')  (0.9ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:29:20')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '53a856a30208b8835c74bf1a16e02aa3', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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%3A29%3A20-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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c11b655f50938a913e0584a4cc77be4' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:29:20') SQL (0.2ms) 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:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 17, '2016-08-23 16:29:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0c11b655f50938a913e0584a4cc77be4', '62590701c6f35b45309577ef8c8c22b4', 17, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49b216541a74d56008729a0cfc253e3a' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 18, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 18, '2016-08-23 16:29:20') SQL (0.2ms) 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:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 18, '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '49b216541a74d56008729a0cfc253e3a', 'd95884a882a64501650fb8f9deae5104', 18, 'info:sid/google', '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd248726c9c4c1233e6cf6f184f655f2e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 19, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 19, '2016-08-23 16:29:20') SQL (0.2ms) 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:29:20') SQL (0.1ms) INSERT 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:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 19, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 19, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 19, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 19, '2016-08-23 16:29:20') SQL (0.1ms) 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:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd248726c9c4c1233e6cf6f184f655f2e', '06d451b80bf9fe3ce6849a48c98522d7', 19, 'info:sid/google', '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 19 LIMIT 1  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) ROLLBACK Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc50a702fc8f9a5dc57d0be1d31f2abb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2016-08-23 16:29:20')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cc50a702fc8f9a5dc57d0be1d31f2abb', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:29:20')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98b87ec013680c0a2f3c7bbffe30fc1b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2016-08-23 16:29:20')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '98b87ec013680c0a2f3c7bbffe30fc1b', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 21, 'test_holding', 'holding', '2016-08-23 16:29:20')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:20')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 16:29:20', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd32e76b234b502db4c2af1500a4643b9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:29:20') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2016-08-23 16:29:20') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2016-08-23 16:29:20')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd32e76b234b502db4c2af1500a4643b9', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2016-08-23 16:29:20')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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:29:20')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 16:29:21', '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89975e505c6e20efe85fefde97cbdbc4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 16:29:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2016-08-23 16:29:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '89975e505c6e20efe85fefde97cbdbc4', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 16:29:21', '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15358237037f42ee2ea51352d110f702' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 24, '2016-08-23 16:29:21')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15358237037f42ee2ea51352d110f702', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 24, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.3ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a8e9ceba2248a1e983d07a455479384' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:29:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a8e9ceba2248a1e983d07a455479384', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.3ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '730fce5bb920db1f72297543490cdb65' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:29:21') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 26, '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '730fce5bb920db1f72297543490cdb65', '9902a1d22a141a826ae31b1c83cb928c', 26, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.6ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acd9bc742404385301c3d7ead0cd5bbf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:29:21')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'acd9bc742404385301c3d7ead0cd5bbf', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a47ca44dd1a85b62b6733b4129fcf62' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:29:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:29:21')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a47ca44dd1a85b62b6733b4129fcf62', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2016-08-23 16:29:21')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:29:21')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 16:29:21', '2016-08-23 16:29:21')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.4ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.6ms) 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  (17.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (20.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (18.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (12.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (11.1ms) 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  (15.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.2ms) CREATE 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  (10.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (14.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.5ms) 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  (11.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.7ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.1ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.9ms) CREATE 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  (11.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.5ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.9ms) 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  (12.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (29.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (19.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (17.4ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (16.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (25.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (14.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (12.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (18.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.5ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.9ms) 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  (12.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (15.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.6ms) CREATE 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  (12.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.3ms) 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  (11.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.4ms) CREATE 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  (12.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.2ms) 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  (11.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (11.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.3ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.7ms) CREATE 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  (11.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.5ms) 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  (10.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.2ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.2ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '628811b67f48363c77c0f5189df5a94e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 16:31:43')  (1.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '628811b67f48363c77c0f5189df5a94e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 16:31:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '850212d8fe2179eb960ed9638d321119' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 16:31:43') SQL (0.1ms) 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 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 2, '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '850212d8fe2179eb960ed9638d321119', '62590701c6f35b45309577ef8c8c22b4', 2, '0.0.0.0', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77e1803b0d9bc34e9bc270c9a34d6e52' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) 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:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 3, '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 3, '2016-08-23 16:31:43') SQL (0.2ms) INSERT 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:31:43') SQL (0.2ms) 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:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 3, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 3, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 3, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 3, '2016-08-23 16:31:43') SQL (0.1ms) INSERT 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:31:43')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '77e1803b0d9bc34e9bc270c9a34d6e52', '06d451b80bf9fe3ce6849a48c98522d7', 3, 'info:sid/google', '0.0.0.0', '2016-08-23 16:31:43')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 3 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6291702bfce3b063abe55d5709608ed3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 16:31:43') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2016-08-23 16:31:43') SQL (0.1ms) 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:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2016-08-23 16:31:43')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6291702bfce3b063abe55d5709608ed3', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 16:31:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99878414e2c675a2ca91f07454911acf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '99878414e2c675a2ca91f07454911acf', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 5, 'test_holding', 'holding', '2016-08-23 16:31:43')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd3bbda37c3be1effb91bd26de8b9237' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fd3bbda37c3be1effb91bd26de8b9237', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 16:31:43')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09a555ee96f2c69acacef34a4042bfce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 7, '2016-08-23 16:31:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 7, '2016-08-23 16:31:43')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '09a555ee96f2c69acacef34a4042bfce', 'e7e9149c1fdfcd3be6736b651a0064bb', 7, '0.0.0.0', '2016-08-23 16:31:43')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:31:43')  (0.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2016-08-23 16:31:43', '2016-08-23 16:31:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3246e90eaba5dffdc12c29a92160dd0d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 16:31:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 16:31:43')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3246e90eaba5dffdc12c29a92160dd0d', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2016-08-23 16:31:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:43')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 8, '2016-08-23 16:31:44', '2016-08-23 16:31:44')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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:31:44' WHERE `dispatched_services`.`id` = 7  (0.6ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d50a423419eed7a4ed1dd78a1798a50' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:31:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 16:31:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 16:31:44')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5d50a423419eed7a4ed1dd78a1798a50', '1f2487b5ab29a0f58587335258d7f8e0', 9, '0.0.0.0', '2016-08-23 16:31:44')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:44')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 16:31:50')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 16:31:50', '2016-08-23 16:31:50')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e928c843966d82dacd072675023cc99b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:31:50') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 16:31:50') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 10, '2016-08-23 16:31:50')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e928c843966d82dacd072675023cc99b', '9902a1d22a141a826ae31b1c83cb928c', 10, '0.0.0.0', '2016-08-23 16:31:50')  (5.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:50')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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:31:54')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 16:31:54', '2016-08-23 16:31:54')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '755ff3575642e313918e1efa324c0ba9' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 16:31:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 16:31:54') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 11, '2016-08-23 16:31:54')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '755ff3575642e313918e1efa324c0ba9', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 11, '0.0.0.0', '2016-08-23 16:31:54')  (6.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:54')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 16:31:59')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 16:31:59', '2016-08-23 16:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb529d836fb2448cd989fc8c228718a7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 16:31:59')  (6.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cb529d836fb2448cd989fc8c228718a7', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 16:31:59')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:31:59')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 16:31:59', '2016-08-23 16:31:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 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 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7058fefae386254d2dad577f84bae2e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 16:31:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 16:31:59')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7058fefae386254d2dad577f84bae2e4', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 16:31:59')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 13  (0.1ms) BEGIN SQL (0.2ms) 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 13\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 16:31:59')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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%3A31%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 10ms (ActiveRecord: 1.6ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '347de732d758c7b300786ffc8a524e34' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:31:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 16:31:59') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 16:31:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '347de732d758c7b300786ffc8a524e34', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 16:31:59')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 16:31:59')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:31:59')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) 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%3A31%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) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca38aab957965904fa41f35b20b129ba' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 16:31:59') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 16:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ca38aab957965904fa41f35b20b129ba', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 16:31:59')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:59')  (0.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 15, '2016-08-23 16:31:59', '2016-08-23 16:31:59')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:31:59')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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%3A31%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 13ms (ActiveRecord: 2.2ms) DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 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' DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:32:03' WHERE `dispatched_services`.`id` = 12  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 22  (0.6ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c08fbe857d8ac6872c41bca648be5b85' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:32:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 16:32:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c08fbe857d8ac6872c41bca648be5b85', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 16:32:03')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:32:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2016-08-23 16:32:03', '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:32:03')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Redirected to http://example.org Completed 302 Found in 15ms (ActiveRecord: 4.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a25fb163a33306474f4d9514735c6b1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:32:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 16:32:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a25fb163a33306474f4d9514735c6b1f', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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:32:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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:32:03')  (0.4ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34d60453348fbc65596e5b47cbffd2e2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:32:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 16:32:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 16:32:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '34d60453348fbc65596e5b47cbffd2e2', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 16:32:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 16:32:03', '2016-08-23 16:32:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:32:03')  (7.5ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 17ms (Views: 0.3ms | ActiveRecord: 9.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":"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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f63e76c81a459cef7f31a92a4c66b5c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.8ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 16:32:03') SQL (0.8ms) 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:32:03' WHERE `dispatched_services`.`id` = 14 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 16:32:03')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 16:32:03')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 28  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2f63e76c81a459cef7f31a92a4c66b5c', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 16:32:03')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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:32:04')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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%3A32%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 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 12:32:04 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08104d4ea21b926e27049796318f46a7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 16:32:04')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '08104d4ea21b926e27049796318f46a7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 16:32:04')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 20, '2016-08-23 16:32:04', '2016-08-23 16:32:04')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:04')  (0.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:32:04' WHERE `dispatched_services`.`id` = 15  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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.6ms) DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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.7ms) ServiceResponse Load (0.3ms) 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.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/_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.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.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.9ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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 (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) DispatchedService Load (0.3ms) 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 (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.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 (58.9ms) Permalink Load (0.2ms) 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 (7.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.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 (3.0ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 305ms (Views: 250.2ms | 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:32:04 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa489c1f4f2d6f739c60e1f999f88c0a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 21, '2016-08-23 16:32:04') SQL (0.2ms) 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:32:04')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'aa489c1f4f2d6f739c60e1f999f88c0a', 'a03fb1fb17f24f5ea845bf6c4450490b', 21, '127.0.0.1', '2016-08-23 16:32:04')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 16:32:04', '2016-08-23 16:32:04')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:04')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:04' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.5ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.7ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.4ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.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 (35.0ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 69ms (Views: 36.5ms | ActiveRecord: 7.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:32:04 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87d286dde55ced6c842105a139272572' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 22, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 22, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 22, '2016-08-23 16:32:04')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '87d286dde55ced6c842105a139272572', 'bc13b80c2923ce2cbe0c8347141587a7', 22, '127.0.0.1', '2016-08-23 16:32:04')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 16:32:04', '2016-08-23 16:32:04')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:04' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.4ms) 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 (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.1ms) ServiceResponse Load (0.3ms) 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.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.5ms) Rendered /Users/barnabyalter/.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 (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.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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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 (18.4ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 50ms (Views: 20.7ms | ActiveRecord: 5.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d844484163cf444d47f4fd9e7214cb4' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 23, '2016-08-23 16:32:04')  (4.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5d844484163cf444d47f4fd9e7214cb4', '318e542032e1812e600e07efbdb1dfcc', 23, '0.0.0.0', '2016-08-23 16:32:04')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 23, '2016-08-23 16:32:04', '2016-08-23 16:32:04')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=23" for 127.0.0.1 at 2016-08-23 12:32:04 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.3ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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 (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.5ms) Rendered /Users/barnabyalter/.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/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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.2ms) 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.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 (14.1ms) Permalink Load (0.3ms) 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 (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.6ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 28ms (Views: 17.8ms | 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:32:04 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '188a010707add7f42f046bac26c28ad2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:32:04') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 16:32:04') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 16:32:04')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '188a010707add7f42f046bac26c28ad2', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 16:32:04')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 16:32:04', '2016-08-23 16:32:04')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:04')  (0.2ms) COMMIT 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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:32:08' WHERE `dispatched_services`.`id` = 13  (1.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:32:08')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:09' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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.7ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.4ms) 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.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.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 (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.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) Request Load (0.2ms) 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.4ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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 (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.0ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.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.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) DispatchedService Load (0.9ms) 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 (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 (28.6ms) Permalink Load (0.2ms) 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 (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.4ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4520ms (Views: 28.9ms | ActiveRecord: 9.4ms) Started GET "/borrow_direct/BorrowDirect/24?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:32:09 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:32:09' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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:32:09')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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-23T12%3A32%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 14ms (ActiveRecord: 2.7ms) 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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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:32:10' WHERE `dispatched_services`.`id` = 19  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 34  (0.4ms) 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%3A32%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 12:32:10 -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:32: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.4ms) 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.6ms) ServiceResponse Load (0.4ms) 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.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) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.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 (21.2ms) Permalink Load (0.3ms) 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.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)  (0.3ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 32ms (Views: 20.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:32:10 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23cea0725497c7d690762e94e737ce23' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 16:32:10') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 16:32:10') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2016-08-23 16:32:10')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '23cea0725497c7d690762e94e737ce23', '9902a1d22a141a826ae31b1c83cb928c', 25, '127.0.0.1', '2016-08-23 16:32:10')  (5.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 16:32:10', '2016-08-23 16:32:10')  (0.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:10')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:32:14')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:14' WHERE `dispatched_services`.`id` = 20  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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 (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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (13.5ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4216ms (Views: 14.3ms | ActiveRecord: 17.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:32:14 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '710d1849e771ee40f2e3d56828dd501d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:32:14') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 16:32:14') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 16:32:14')  (11.0ms) COMMIT  (0.1ms) BEGIN SQL (2.5ms) 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', '710d1849e771ee40f2e3d56828dd501d', '1f2487b5ab29a0f58587335258d7f8e0', 26, '127.0.0.1', '2016-08-23 16:32:14')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 26, '2016-08-23 16:32:14', '2016-08-23 16:32:14')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (26) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (26) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (26) DispatchedService Load (0.2ms) 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 SQL (0.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`id` = 21 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:14')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:32:18')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:18' WHERE `dispatched_services`.`id` = 21  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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 (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.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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.1ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4437ms (Views: 13.8ms | ActiveRecord: 18.8ms) Started GET "/borrow_direct/BorrowDirect/26?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 12:32:18 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 16:32:18' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:32:18')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26) 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%3A32%3A18-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.5ms) DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:23' WHERE `dispatched_services`.`id` = 21  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000423\n' WHERE `service_responses`.`id` = 39  (0.4ms) 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%3A32%3A18-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:32:23 -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:32:18-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (26)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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/_section_heading.html.erb (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.6ms) Rendered /Users/barnabyalter/.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) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.5ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 3.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 12:32:23 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af38e912aa14649a0cf50460d3c45d3c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:32:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 16:32:23') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2016-08-23 16:32:23')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'af38e912aa14649a0cf50460d3c45d3c', '1f2487b5ab29a0f58587335258d7f8e0', 27, '127.0.0.1', '2016-08-23 16:32:23')  (5.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 27, '2016-08-23 16:32:23', '2016-08-23 16:32:23')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (27) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (27) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (27) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:23')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 16:32:27')  (1.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:27' WHERE `dispatched_services`.`id` = 22  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.4ms) Permalink Load (0.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 27 Rendered /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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4125ms (Views: 13.9ms | ActiveRecord: 18.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:32:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '888dfc99ff03068e174c0867eec8248e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.3ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 16:32:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 16:32:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2016-08-23 16:32:27')  (12.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '888dfc99ff03068e174c0867eec8248e', '1f2487b5ab29a0f58587335258d7f8e0', 28, '127.0.0.1', '2016-08-23 16:32:27')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 28, '2016-08-23 16:32:27', '2016-08-23 16:32:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (28) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (28) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (28) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`id` = 23 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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:32:27')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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:32:31')  (1.0ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 16:32:31' WHERE `dispatched_services`.`id` = 23  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.3ms) 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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4333ms (Views: 14.0ms | ActiveRecord: 19.0ms) Started GET "/borrow_direct/BorrowDirect/28" for 127.0.0.1 at 2016-08-23 12:32:31 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) 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:32:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) 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%3A32%3A31-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.9ms) 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%3A32%3A31-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:32:31 -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:32:31-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 LIMIT 1 DispatchedService Load (0.4ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Rendered /Users/barnabyalter/.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) 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.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.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.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) DispatchedService Load (0.3ms) 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.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.4ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 21ms (Views: 12.7ms | ActiveRecord: 3.8ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (49.3ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (25.6ms) 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  (14.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.5ms) CREATE 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  (11.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (8.9ms) 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  (11.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.9ms) CREATE 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  (10.5ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.2ms) 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  (11.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.2ms) CREATE 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  (11.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (14.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (37.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (12.8ms) 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  (10.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (9.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9be28658a6efd2b480cb7c662c451fe4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:01') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:06:01') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 19:06:01')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9be28658a6efd2b480cb7c662c451fe4', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 19:06:01')  (6.0ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:01')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 19:06:01', '2016-08-23 19:06:01')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77c582429ab1c84006b79ba450a7fe26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2016-08-23 19:06:02')  (9.8ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '77c582429ab1c84006b79ba450a7fe26', '1f2487b5ab29a0f58587335258d7f8e0', 2, '0.0.0.0', '2016-08-23 19:06:02')  (6.4ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.5ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f6eceaf7e948f2cd2f5c0a26bcd8c03' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2016-08-23 19:06:02')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4f6eceaf7e948f2cd2f5c0a26bcd8c03', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2016-08-23 19:06:02')  (6.3ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '79a2ab342064cd6cc5c6a88ca671481e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 4, '2016-08-23 19:06:02')  (10.1ms) COMMIT  (0.2ms) BEGIN SQL (2.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '79a2ab342064cd6cc5c6a88ca671481e', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 4, '0.0.0.0', '2016-08-23 19:06:02')  (3.6ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.4ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e42c47f2b8d2b6bfc4bde625af4790bd' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2016-08-23 19:06:02')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e42c47f2b8d2b6bfc4bde625af4790bd', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2016-08-23 19:06:02')  (11.5ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (10.0ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae5c53c254270eb37252382088e25e67' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2016-08-23 19:06:02')  (6.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'ae5c53c254270eb37252382088e25e67', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2016-08-23 19:06:02')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 6, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (6.4ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com\n:backtrace:\n- \"/Users/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 19:06:02' WHERE `dispatched_services`.`id` = 2  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (3.2ms) 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.4ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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.5ms) ServiceResponse Load (0.4ms) 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.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.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.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.0ms) Rendered /Users/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 (3.2ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (16.0ms) Rendered /Users/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.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.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/_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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (0.3ms) 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 (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.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.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 (71.3ms) Permalink Load (0.2ms) 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 (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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 441ms (Views: 297.0ms | ActiveRecord: 35.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 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd48ebc12066fca468ffdaa41473b61f9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 7, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 7, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 7, '2016-08-23 19:06:02')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'd48ebc12066fca468ffdaa41473b61f9', 'a03fb1fb17f24f5ea845bf6c4450490b', 7, '127.0.0.1', '2016-08-23 19:06:02')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:06:02' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) DispatchedService Load (0.4ms) 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 (13.2ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 56ms (Views: 14.4ms | ActiveRecord: 13.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 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60651095a046f2b356bc9651ea5d08d7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 8, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 8, '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '60651095a046f2b356bc9651ea5d08d7', 'bc13b80c2923ce2cbe0c8347141587a7', 8, '127.0.0.1', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:06:02' WHERE `dispatched_services`.`id` = 4  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.3ms) 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.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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 (11.0ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 42ms (Views: 12.4ms | ActiveRecord: 6.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf24cb2424691202f97ed02bb654f3f3' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 9, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 9, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bf24cb2424691202f97ed02bb654f3f3', '318e542032e1812e600e07efbdb1dfcc', 9, '0.0.0.0', '2016-08-23 19:06:02')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 9, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=9" for 127.0.0.1 at 2016-08-23 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.9ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.2ms) 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 (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.4ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.2ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 22ms (Views: 14.1ms | ActiveRecord: 2.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df47134103076643e85d3d0147df6e96' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 'df47134103076643e85d3d0147df6e96', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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 31ms (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 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f9201a4085271f896b41fcc14e0aa81' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 11, '2016-08-23 19:06:02')  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '9f9201a4085271f896b41fcc14e0aa81', '9902a1d22a141a826ae31b1c83cb928c', 11, '127.0.0.1', '2016-08-23 19:06:02')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (4.9ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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 49ms (ActiveRecord: 19.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '144d64f5494e33093b9f28119960b108' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 19:06:02')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '144d64f5494e33093b9f28119960b108', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 19:06:02')  (4.9ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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 44ms (ActiveRecord: 13.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9477366ad54be9ee1772122b86b753da' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '9477366ad54be9ee1772122b86b753da', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.5ms) COMMIT Umlaut: Threaded service raised exception. Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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 32ms (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 15:06:02 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '025d90fa4e7014c4692b21b7268e060e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:06:02') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '025d90fa4e7014c4692b21b7268e060e', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 19:06:02', '2016-08-23 19:06:02')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:02')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. Service: BorrowDirect, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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.4ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '510c4049857d3879b611d7d6b5c6baef' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2016-08-23 19:06:02') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2016-08-23 19:06:02')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '510c4049857d3879b611d7d6b5c6baef', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2016-08-23 19:06:02')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (15, '--- {}\n', 'test_holding', 'holding', '2016-08-23 19:06:03')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:03')  (6.2ms) COMMIT DispatchedService Load (0.4ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17c633eb1bb558622ade528c58a230a5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 19:06:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '17c633eb1bb558622ade528c58a230a5', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 16  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:06:03')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A06%3A03-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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94a5b0bebe8bbff8c5f4a2ef2d96a4cb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 19:06:03')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '94a5b0bebe8bbff8c5f4a2ef2d96a4cb', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A06%3A03-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 --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b8e51114720ac6175c3723dc95d684d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2b8e51114720ac6175c3723dc95d684d', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2016-08-23 19:06:03')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:06:03')  (0.3ms) COMMIT Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A06%3A03-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: 1.9ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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, :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' ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (1.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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://bdtest.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, :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 19:06:03' WHERE `dispatched_services`.`id` = 12  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (12.7ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cda4c96ac17a378a7a11fc800580d1e1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cda4c96ac17a378a7a11fc800580d1e1', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:06:03')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://example.org Completed 302 Found in 8ms (ActiveRecord: 2.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://bdtest.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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e7fc2e9f50acb5f168934a00d5436a8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.3ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.8ms) 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://bdtest.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 19:06:03' WHERE `dispatched_services`.`id` = 13 SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:06:03')  (0.8ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 19:06:03')  (0.8ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7e7fc2e9f50acb5f168934a00d5436a8', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:06:03')  (0.4ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe27d369410d7769835a83fd8417b0af' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fe27d369410d7769835a83fd8417b0af', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 2.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ece3e3201a4802e7e913daf4132817a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 19:06:03')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6ece3e3201a4802e7e913daf4132817a', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:06:03')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A06%3A03-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)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bcc4e3b61470ffb2634cc6af19f1453' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:06:03') SQL (0.2ms) 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, 23, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 23, '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2bcc4e3b61470ffb2634cc6af19f1453', '62590701c6f35b45309577ef8c8c22b4', 23, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:03')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8825361c3e1c68868396716d597215e7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:06:03') SQL (11.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 24, '2016-08-23 19:06:03') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 24, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 24, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 24, '2016-08-23 19:06:03')  (12.6ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '8825361c3e1c68868396716d597215e7', '06d451b80bf9fe3ce6849a48c98522d7', 24, 'info:sid/google', '0.0.0.0', '2016-08-23 19:06:03')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 24 LIMIT 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a908969d19b2852e07f4a87a1055d73' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 25, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 25, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 25, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 25, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 25, '2016-08-23 19:06:03') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 25, '2016-08-23 19:06:03')  (11.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '8a908969d19b2852e07f4a87a1055d73', 'd95884a882a64501650fb8f9deae5104', 25, 'info:sid/google', '0.0.0.0', '2016-08-23 19:06:03')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:03')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62e9999864ac3e9e64221eb0468258de' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '62e9999864ac3e9e64221eb0468258de', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:06:03')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:03')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea8b339265b4962ea869a55acd370886' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 19:06:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ea8b339265b4962ea869a55acd370886', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 19:06:03')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2016-08-23 19:06:03')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:06:03')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cfb925e57f2b11372de45b4cdf1eb4a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 19:06:03') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 19:06:03')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4cfb925e57f2b11372de45b4cdf1eb4a', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 19:06:03')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 28, 'test_holding', 'holding', '2016-08-23 19:06:03')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:06:03', '2016-08-23 19:06:03')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.5ms) 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  (13.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (14.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (14.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.6ms) CREATE 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  (13.3ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.9ms) 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  (11.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.4ms) CREATE 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  (12.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.0ms) 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  (11.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (13.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (18.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (11.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (14.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.8ms) 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  (11.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (13.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (13.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.4ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.1ms) 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 15:14:57 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8bd8f8eb0abb12b49bc9d652fa7916af' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:14:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 19:14:57')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '8bd8f8eb0abb12b49bc9d652fa7916af', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 19:14:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 19:14:57', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:14:57')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.4ms) 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 19:14:57' WHERE `dispatched_services`.`id` = 1  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (0.3ms) 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.4ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.3ms) 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.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.5ms) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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 (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.0ms) 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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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) DispatchedService Load (0.3ms) 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.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 (56.5ms) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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.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.9ms)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 400ms (Views: 251.4ms | ActiveRecord: 16.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 15:14:57 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbc521a296418665b2e0f97047520763' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 19:14:57') SQL (0.1ms) 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 19:14:57')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cbc521a296418665b2e0f97047520763', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 19:14:57', '2016-08-23 19:14:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:14:57')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:14:57' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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.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.1ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 51ms (Views: 15.8ms | 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 15:14:57 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90057ea868528f4803184d88d8234eee' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '90057ea868528f4803184d88d8234eee', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 19:14:57', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:14:57' WHERE `dispatched_services`.`id` = 3  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.4ms) 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.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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.6ms) ServiceResponse Load (0.3ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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 (17.0ms) Permalink Load (7.0ms) 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 (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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 58ms (Views: 19.9ms | ActiveRecord: 13.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df2bf6df1edd597398367c5e31871ce8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 19:14:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'df2bf6df1edd597398367c5e31871ce8', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 19:14:57')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 19:14:57', '2016-08-23 19:14:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 15:14:57 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.4ms) 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.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.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/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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.4ms) Rendered /Users/barnabyalter/.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.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) DispatchedService Load (0.3ms) 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.0ms) Rendered /Users/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.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 (18.7ms) Permalink Load (0.4ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 33ms (Views: 21.2ms | ActiveRecord: 4.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:14:57 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991010cfe0a6a5f2070da7313b1b018b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:14:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 19:14:57')  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (0.2ms) 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', '991010cfe0a6a5f2070da7313b1b018b', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 19:14:57', '2016-08-23 19:14:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:14:57')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:02')  (0.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:02' WHERE `dispatched_services`.`id` = 5  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.8ms) 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.4ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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) CACHE (0.0ms) 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.2ms) 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 (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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (19.5ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4472ms (Views: 20.6ms | ActiveRecord: 7.0ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:15:02 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:15:02' WHERE `dispatched_services`.`id` = 5  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:02')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A15%3A02-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.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' DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 19:15:08' WHERE `dispatched_services`.`id` = 5  (1.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) 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-23T15%3A15%3A02-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 15:15:08 -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-23T15:15:02-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.1ms) 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.8ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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 (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.6ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.4ms) 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.5ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 25ms (Views: 14.4ms | ActiveRecord: 4.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:15:08 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '820a0472ffad1967d6ae31dc770965f5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:15:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:15:08') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 19:15:08')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '820a0472ffad1967d6ae31dc770965f5', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 19:15:08')  (4.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 19:15:08', '2016-08-23 19:15:08')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:08')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:13')  (0.7ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:13' WHERE `dispatched_services`.`id` = 6  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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/.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.3ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.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 (14.0ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.3ms) COMMIT Completed 200 OK in 4308ms (Views: 15.2ms | ActiveRecord: 16.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:15:13 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30f6cd25c5100d698c4c64a051707ef2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:13') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:15:13') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 19:15:13')  (5.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '30f6cd25c5100d698c4c64a051707ef2', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 19:15:13')  (9.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 19:15:13', '2016-08-23 19:15:13')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (6.1ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:13')  (5.9ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:17')  (1.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:17' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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.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.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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4339ms (Views: 16.8ms | ActiveRecord: 20.8ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:15:17 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:15:17' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:17')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A15%3A17-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.8ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:21' WHERE `dispatched_services`.`id` = 7  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: NYU-90000430\n' WHERE `service_responses`.`id` = 10  (0.3ms) 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-23T15%3A15%3A17-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 15:15:21 -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-23T15:15:17-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.5ms) 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.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) ServiceResponse Load (0.3ms) 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.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.4ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.9ms) Permalink Load (0.2ms) 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.2ms)  (0.1ms) BEGIN  (0.4ms) COMMIT Completed 200 OK in 22ms (Views: 13.0ms | ActiveRecord: 3.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:15:21 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4b13e400a123d6c3b953b4dbebcc6ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:15:21') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 19:15:21')  (12.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'c4b13e400a123d6c3b953b4dbebcc6ad', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 19:15:21')  (3.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 19:15:21', '2016-08-23 19:15:21')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:22')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:15:26')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:26' WHERE `dispatched_services`.`id` = 8  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] 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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.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) Permalink Load (0.3ms) 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.2ms)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 4522ms (Views: 14.7ms | ActiveRecord: 22.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 15:15:26 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e73ca0cf100b2efaeaee0ea625ff138' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:15:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 19:15:26')  (6.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '7e73ca0cf100b2efaeaee0ea625ff138', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 19:15:26')  (5.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 19:15:26', '2016-08-23 19:15:26')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:26')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:30')  (1.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:15:30' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.5ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.8ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 4405ms (Views: 14.3ms | ActiveRecord: 17.2ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2016-08-23 15:15:30 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) 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 19:15:30')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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-23T15%3A15%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 7ms (ActiveRecord: 1.8ms) 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-23T15%3A15%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 15:15: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-23T15:15: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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 (0.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.5ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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.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 (15.3ms) Permalink Load (0.4ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 26ms (Views: 16.4ms | ActiveRecord: 3.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '812403a47b7978d0defdb321092da3fb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:15:30') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2016-08-23 19:15:30')  (11.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '812403a47b7978d0defdb321092da3fb', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2016-08-23 19:15:30')  (5.1ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:30')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 19:15:30', '2016-08-23 19:15:30')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b15faf43607f2802d0f3b3c9a1541eb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:30') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:15:31') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2016-08-23 19:15:31')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3b15faf43607f2802d0f3b3c9a1541eb', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2016-08-23 19:15:31')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A15%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 8ms (ActiveRecord: 1.4ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '651976910b1075d74d9c177171c1ec90' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:15:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2016-08-23 19:15:31')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '651976910b1075d74d9c177171c1ec90', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2016-08-23 19:15:31')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:31')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18  (0.1ms) BEGIN SQL (0.2ms) 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', 12, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:15:31')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A15%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.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90ebce5c73446696467ee441844aba0f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:15:31') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2016-08-23 19:15:31')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '90ebce5c73446696467ee441844aba0f', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2016-08-23 19:15:31')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:15:31')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2016-08-23 19:15:31', '2016-08-23 19:15:31')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:31')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A15%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 14ms (ActiveRecord: 2.6ms) DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35' WHERE `dispatched_services`.`id` = 11  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e7540523dbee7f8feff5a4fad01fb3d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2016-08-23 19:15:35')  (12.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1e7540523dbee7f8feff5a4fad01fb3d', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2016-08-23 19:15:35')  (4.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:35')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Redirected to http://example.org Completed 302 Found in 13ms (ActiveRecord: 2.4ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce0115a67bb793f2c4ecd20f338f62e2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2016-08-23 19:15:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ce0115a67bb793f2c4ecd20f338f62e2', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35')  (0.3ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2305f1aa19650f4be364ba10dec0e6b5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2305f1aa19650f4be364ba10dec0e6b5', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35')  (8.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (4.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:35')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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 15ms (Views: 0.3ms | ActiveRecord: 6.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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a53b80ac0c5579c8ec7cfb42aa76c3a4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.3ms) 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  (2.0ms) BEGIN  (1.8ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:15:35') SQL (0.7ms) 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 19:15:35' WHERE `dispatched_services`.`id` = 13 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:15:35')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2016-08-23 19:15:35')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.8ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a53b80ac0c5579c8ec7cfb42aa76c3a4', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:15:35')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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-23T15%3A15%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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10610221d163f44eeb3543b4dd5b0dfd' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '10610221d163f44eeb3543b4dd5b0dfd', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2016-08-23 19:15:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:35')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'facfae588c698f9cb9b418506a1174cf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:15:35') SQL (0.1ms) 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 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 19, '2016-08-23 19:15:35')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'facfae588c698f9cb9b418506a1174cf', '62590701c6f35b45309577ef8c8c22b4', 19, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:35')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cb471b8f772fe972c9ec02bee5b30b3' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 20, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 20, '2016-08-23 19:15:35') SQL (0.1ms) 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 19:15:35') SQL (0.1ms) 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 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 20, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 20, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 20, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 20, '2016-08-23 19:15:35') SQL (0.2ms) 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 19:15:35')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '6cb471b8f772fe972c9ec02bee5b30b3', '06d451b80bf9fe3ce6849a48c98522d7', 20, 'info:sid/google', '0.0.0.0', '2016-08-23 19:15:35')  (0.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 20 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bde71ae10b05e8c1ea2902c0f0e82645' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 21, '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 21, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 21, '2016-08-23 19:15:35') SQL (0.2ms) 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, 21, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 21, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 21, '2016-08-23 19:15:35')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bde71ae10b05e8c1ea2902c0f0e82645', 'd95884a882a64501650fb8f9deae5104', 21, 'info:sid/google', '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:35')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bdcb4971f3b77ba212ec226f7470243' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:35') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 19:15:35')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2bdcb4971f3b77ba212ec226f7470243', '1f2487b5ab29a0f58587335258d7f8e0', 22, '0.0.0.0', '2016-08-23 19:15:35')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:35')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.5ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 22, '2016-08-23 19:15:35', '2016-08-23 19:15:35')  (1.0ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:15:35' WHERE `dispatched_services`.`id` = 17  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b32e4c47db196ef8dd905b9c5aa4ccc6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:15:35') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 23, '2016-08-23 19:15:35')  (12.5ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b32e4c47db196ef8dd905b9c5aa4ccc6', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 23, '0.0.0.0', '2016-08-23 19:15:35')  (5.1ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:35')  (0.4ms) COMMIT 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:15:39' WHERE `dispatched_services`.`id` = 12  (1.0ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 14, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:15:39')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', 23, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:15:40')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2016-08-23 19:15:40', '2016-08-23 19:15:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fda5aec8ca931c451fefe04b25d88000' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:15:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:15:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 24, '2016-08-23 19:15:40')  (6.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fda5aec8ca931c451fefe04b25d88000', '9902a1d22a141a826ae31b1c83cb928c', 24, '0.0.0.0', '2016-08-23 19:15:40')  (10.6ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:40')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:44')  (1.1ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 19:15:44', '2016-08-23 19:15:44')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e20e903f2bfa6f0aa956adaeae67b359' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:15:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:15:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 19:15:44')  (6.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e20e903f2bfa6f0aa956adaeae67b359', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 19:15:44')  (6.1ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:44')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:15:49')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 19:15:49', '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '095021fecf57c292196b555fe8ce65ec' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 19:15:49')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '095021fecf57c292196b555fe8ce65ec', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 19:15:49')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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 19:15:49')  (0.5ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 19:15:49', '2016-08-23 19:15:49')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c259fe315f8f603dc82693205c4d87d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 19:15:49') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 19:15:49')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6c259fe315f8f603dc82693205c4d87d', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2016-08-23 19:15:49')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:49')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 19:15:49', '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6578b5b8f824b2ba5ed2866a7ae7f82a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:15:49') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:15:49') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 19:15:49') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6578b5b8f824b2ba5ed2866a7ae7f82a', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 28, 'test_holding', 'holding', '2016-08-23 19:15:49')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:15:49')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:15:49', '2016-08-23 19:15:49')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.5ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.3ms) 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  (13.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (15.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.7ms) CREATE 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  (13.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.0ms) 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  (12.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.6ms) CREATE 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  (11.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.0ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (10.0ms) 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  (11.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (10.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.2ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (10.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.5ms) 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  (10.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.4ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.4ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (7.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (12.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cab1c458a64f6f799ac069359656fd2a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT 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 19:16:42') SQL (0.2ms) 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 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 1, '2016-08-23 19:16:42') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 1, '2016-08-23 19:16:42') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 1, '2016-08-23 19:16:42')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cab1c458a64f6f799ac069359656fd2a', '06d451b80bf9fe3ce6849a48c98522d7', 1, 'info:sid/google', '0.0.0.0', '2016-08-23 19:16:43')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 1 LIMIT 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be711bc684d36010e23f99e9ad13449d' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 2, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 2, '2016-08-23 19:16:43') SQL (0.1ms) 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 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 2, '2016-08-23 19:16:43')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'be711bc684d36010e23f99e9ad13449d', 'd95884a882a64501650fb8f9deae5104', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 19:16:43')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d56424b9535c55476afc6a3e801da61' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:16:43') SQL (0.1ms) 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 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 19:16:43')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0d56424b9535c55476afc6a3e801da61', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8afd244da39a00eb17ae53ac7cc6a679' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 4, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 4, '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8afd244da39a00eb17ae53ac7cc6a679', 'e7e9149c1fdfcd3be6736b651a0064bb', 4, '0.0.0.0', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT 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 19:16:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0764063bbc3f56325ead313e33efb102' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 5, '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 5, '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0764063bbc3f56325ead313e33efb102', 'e7e9149c1fdfcd3be6736b651a0064bb', 5, '0.0.0.0', '2016-08-23 19:16:43')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0509fcf353c19db643fb22485428ba28' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 6, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 6, '2016-08-23 19:16:43')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0509fcf353c19db643fb22485428ba28', 'e7e9149c1fdfcd3be6736b651a0064bb', 6, '0.0.0.0', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4b55bc851370c576da53b13f3fc322c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 19:16:43')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a4b55bc851370c576da53b13f3fc322c', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 7, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com\n:backtrace:\n- \"/Users/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 19:16:43' WHERE `dispatched_services`.`id` = 6  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.5ms) 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.7ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (8.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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 (10.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.5ms) ServiceResponse Load (0.5ms) 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 (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.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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (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 (63.1ms) Permalink Load (0.3ms) 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 (8.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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 330ms (Views: 259.7ms | ActiveRecord: 15.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 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7f58e2e78d1751705e8a929717b1597' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 8, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 8, '2016-08-23 19:16:43')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e7f58e2e78d1751705e8a929717b1597', 'a03fb1fb17f24f5ea845bf6c4450490b', 8, '127.0.0.1', '2016-08-23 19:16:43')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2016-08-23 19:16:43')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 7  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) DispatchedService Load (0.3ms) 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 (12.5ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 50ms (Views: 13.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 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf643032d916ed1d75b3ed15eff3ab90' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 9, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 9, '2016-08-23 19:16:43')  (5.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'bf643032d916ed1d75b3ed15eff3ab90', 'bc13b80c2923ce2cbe0c8347141587a7', 9, '127.0.0.1', '2016-08-23 19:16:43')  (4.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.3ms) 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 (0.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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 (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_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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 (10.9ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 53ms (Views: 12.4ms | ActiveRecord: 15.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af6a184c342c84c44223c10a480b90ab' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2016-08-23 19:16:43')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'af6a184c342c84c44223c10a480b90ab', '318e542032e1812e600e07efbdb1dfcc', 10, '0.0.0.0', '2016-08-23 19:16:43')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 10, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=10" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.2ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.2ms) 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.4ms) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.8ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.0ms | ActiveRecord: 3.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5389f68cdfb21c505f940cf288f952b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '5389f68cdfb21c505f940cf288f952b2', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 19:16:43')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 11, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:16:43')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (23.5ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (25.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (26.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.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.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 (38.1ms) Permalink Load (0.2ms) 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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 95ms (Views: 20.6ms | ActiveRecord: 36.1ms) Started GET "/borrow_direct/BorrowDirect/11?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 10  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://www.example.com/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A16%3A43-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.4ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43' WHERE `dispatched_services`.`id` = 10  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (0.3ms) COMMIT Started GET "/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A16%3A43-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 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T15:16:43-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.3ms) 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.5ms) ServiceResponse Load (0.3ms) 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.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/.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 24ms (Views: 14.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 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd29e70677fb52ce4a001f4f8b5b1dc11' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:16:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd29e70677fb52ce4a001f4f8b5b1dc11', '9902a1d22a141a826ae31b1c83cb928c', 12, '127.0.0.1', '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:16:43')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.4ms) 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 (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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 54ms (Views: 13.9ms | ActiveRecord: 5.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '025f2205ccc40ca428d2b6e484de9eea' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:16:43') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '025f2205ccc40ca428d2b6e484de9eea', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 19:16:43')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 19:16:43', '2016-08-23 19:16:43')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:43')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 12  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 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.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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.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.9ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 57ms (Views: 15.7ms | ActiveRecord: 5.6ms) Started GET "/borrow_direct/BorrowDirect/13?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:16:43 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:43')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A16%3A43-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.3ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:43' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000430\n' WHERE `service_responses`.`id` = 17  (0.4ms) 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-23T15%3A16%3A43-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 15:16:43 -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-23T15:16:43-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.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.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) DispatchedService Load (0.3ms) 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 (11.9ms) Permalink Load (0.4ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 22ms (Views: 13.2ms | ActiveRecord: 3.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:16:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3df33634cb9f294a64ab632cfcfaba35' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3df33634cb9f294a64ab632cfcfaba35', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2016-08-23 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:44' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 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.4ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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.0ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 57ms (Views: 15.6ms | ActiveRecord: 5.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 15:16:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de6f5e91f69c7c948739d1e84fd81925' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'de6f5e91f69c7c948739d1e84fd81925', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:16:44' WHERE `dispatched_services`.`id` = 14  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 DispatchedService Load (0.2ms) 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.6ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.4ms) 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.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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.3ms) 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.7ms) 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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.2ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 54ms (Views: 15.4ms | ActiveRecord: 5.4ms) Started GET "/borrow_direct/BorrowDirect/15" for 127.0.0.1 at 2016-08-23 15:16:44 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A16%3A44-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.5ms) 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-23T15%3A16%3A44-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 15:16:44 -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-23T15:16:44-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) Request Load (0.3ms) 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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.4ms) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 23ms (Views: 14.1ms | ActiveRecord: 3.6ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd727bb2948d35ec56285e2c65da1127c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 19:16:44')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd727bb2948d35ec56285e2c65da1127c', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b78c239c02f44199f0507554d40c549' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 17, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 17, '2016-08-23 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2b78c239c02f44199f0507554d40c549', 'e7e9149c1fdfcd3be6736b651a0064bb', 17, '0.0.0.0', '2016-08-23 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '306ac555f97763dccc31506412650d25' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 19:16:44')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '306ac555f97763dccc31506412650d25', '9902a1d22a141a826ae31b1c83cb928c', 18, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af8807afd5748f9481faa01247b00040' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'af8807afd5748f9481faa01247b00040', '1f2487b5ab29a0f58587335258d7f8e0', 19, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 19, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:16:44' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05fe9c9a6ff0b1ee570f142e2a72fa72' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 19:16:44')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '05fe9c9a6ff0b1ee570f142e2a72fa72', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 19:16:44')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc3ddd11fe3d58bba3a641cfa91c3492' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 21, '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fc3ddd11fe3d58bba3a641cfa91c3492', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 21, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:16:44')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 21, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:16:44')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '517009da15718b186688305d3764aeb3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '517009da15718b186688305d3764aeb3', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.4ms) 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-23T15%3A16%3A44-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.6ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5bd7445db94682d69a1136f0ac75d3fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 19:16:44')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5bd7445db94682d69a1136f0ac75d3fe', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 19:16:44')  (6.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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 19:16:44')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A16%3A44-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 --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08f77d8cd355e6aba0773d9860ff98f3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '08f77d8cd355e6aba0773d9860ff98f3', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 19:16:44')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.4ms) 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-23T15%3A16%3A44-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.8ms) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 DispatchedService Load (0.8ms) 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 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (1.9ms) BEGIN SQL (0.2ms) 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 19:16:44' WHERE `dispatched_services`.`id` = 21  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '565da0a74395a5520ab515449ee4c9ae' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:16:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '565da0a74395a5520ab515449ee4c9ae', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://example.org Completed 302 Found in 11ms (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://bdtest.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' Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1746be5c59e049f9a5b08093563331b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.1ms) BEGIN  (1.9ms) BEGIN SQL (2.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.8ms) 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://bdtest.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 19:16:44' WHERE `dispatched_services`.`id` = 22 SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:16:44')  (0.8ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 19:16:44')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39  (0.8ms) BEGIN  (1.5ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f1746be5c59e049f9a5b08093563331b', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.6ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ba9444acd64a7d09504583393582200' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8ba9444acd64a7d09504583393582200', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2016-08-23 19:16:44', '2016-08-23 19:16:44')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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 13ms (Views: 0.3ms | ActiveRecord: 2.4ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e72e7e513fa01e30139cb7ab163d517e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:16:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2016-08-23 19:16:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e72e7e513fa01e30139cb7ab163d517e', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2016-08-23 19:16:44')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:16:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A16%3A44-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) ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (10.9ms) 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  (13.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (13.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (13.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (13.9ms) CREATE 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  (10.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.0ms) 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  (11.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.6ms) CREATE 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  (11.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (7.8ms) 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  (9.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (14.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (11.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (8.6ms) CREATE 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  (11.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.0ms) 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  (10.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.6ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.2ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (11.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (12.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (11.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.1ms) SELECT version FROM `schema_migrations`  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c3294f0cc9e5ff369245ba424cb3ea4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6c3294f0cc9e5ff369245ba424cb3ea4', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:17:40')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de4172cbb5e1611d4023a1c4891a96cf' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT 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 19:17:40') SQL (0.2ms) 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 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 2, '2016-08-23 19:17:40') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 2, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 2, '2016-08-23 19:17:40')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'de4172cbb5e1611d4023a1c4891a96cf', '06d451b80bf9fe3ce6849a48c98522d7', 2, 'info:sid/google', '0.0.0.0', '2016-08-23 19:17:40')  (0.2ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 2 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9898be0691792b39b5545057006933f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:17:40') SQL (0.1ms) 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 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 3, '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e9898be0691792b39b5545057006933f', '62590701c6f35b45309577ef8c8c22b4', 3, '0.0.0.0', '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f238a2b03b7144f4726e0d2d703c531' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2016-08-23 19:17:40') SQL (0.2ms) 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 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2016-08-23 19:17:40')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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', '6f238a2b03b7144f4726e0d2d703c531', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2016-08-23 19:17:40')  (0.2ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:17:40 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd610ae5cdee66bcc445443703b8ff5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'dbd610ae5cdee66bcc445443703b8ff5', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 5, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com\n:backtrace:\n- \"/Users/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 19:17:40' WHERE `dispatched_services`.`id` = 4  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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 (1.5ms) ServiceResponse Load (0.3ms) 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.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.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.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.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.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.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.4ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.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 (16.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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.6ms) Rendered /Users/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.5ms) Permalink Load (0.3ms) 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 (10.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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 349ms (Views: 284.5ms | 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 15:17:40 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b2ab33a69db39d9ef9192fbbebbf715' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 6, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 6, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 6, '2016-08-23 19:17:40') SQL (0.1ms) 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 19:17:40')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7b2ab33a69db39d9ef9192fbbebbf715', 'a03fb1fb17f24f5ea845bf6c4450490b', 6, '127.0.0.1', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:40' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.3ms) 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.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.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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.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.0ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.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 (17.3ms) Permalink Load (0.5ms) 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 (4.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 59ms (Views: 20.6ms | 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 15:17:40 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '693bf767342d4168c4cc6b46c021eaa0' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 7, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 7, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 7, '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '693bf767342d4168c4cc6b46c021eaa0', 'bc13b80c2923ce2cbe0c8347141587a7', 7, '127.0.0.1', '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (5.7ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:40' WHERE `dispatched_services`.`id` = 6  (5.5ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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.5ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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.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.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/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.5ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.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_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.3ms) Rendered /Users/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 (18.3ms) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 70ms (Views: 20.3ms | ActiveRecord: 6.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b368d6691107872ce69a7b843cae5c8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2016-08-23 19:17:40') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 8, '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2b368d6691107872ce69a7b843cae5c8', '318e542032e1812e600e07efbdb1dfcc', 8, '0.0.0.0', '2016-08-23 19:17:40')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 8, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=8" for 127.0.0.1 at 2016-08-23 15:17:40 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.5ms) 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.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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 (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.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/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.6ms) Rendered /Users/barnabyalter/.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/_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.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) DispatchedService Load (0.6ms) 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 (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.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 (19.3ms) Permalink Load (0.6ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 34ms (Views: 21.7ms | ActiveRecord: 4.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:17:40 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd24c39ade7ba3d8ac57ba8ac143f7924' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:40') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:17:40') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd24c39ade7ba3d8ac57ba8ac143f7924', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 19:17:40', '2016-08-23 19:17:40')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.3ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:40')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:40')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:40' WHERE `dispatched_services`.`id` = 8  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.5ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/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) Request Load (0.3ms) 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 (4.8ms) 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 (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 (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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 (18.1ms) Permalink Load (0.2ms) 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.3ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 72ms (Views: 17.9ms | ActiveRecord: 7.9ms) Started GET "/borrow_direct/BorrowDirect/9?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:17:40 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:17:40' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:40')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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-23T15%3A17%3A40-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 12ms (ActiveRecord: 2.3ms) DispatchedService Load (0.5ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 19:17:40' WHERE `dispatched_services`.`id` = 8  (11.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 9  (5.9ms) COMMIT 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-23T15%3A17%3A40-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 15:17:41 -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-23T15:17:40-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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 (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.6ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 28ms (Views: 15.4ms | ActiveRecord: 5.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:17:41 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae9d7a7baae2b1dfacc11858151b7193' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 10, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ae9d7a7baae2b1dfacc11858151b7193', '9902a1d22a141a826ae31b1c83cb928c', 10, '127.0.0.1', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (0.4ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 9  (12.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (0.5ms) 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.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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.4ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.4ms) 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 (15.9ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 71ms (Views: 15.5ms | ActiveRecord: 6.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:17:41 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '447e37306c2e1cf582e2f1958f80488e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '447e37306c2e1cf582e2f1958f80488e', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 11, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.5ms) ServiceResponse Load (0.3ms) 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.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 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.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 60ms (Views: 14.5ms | ActiveRecord: 6.0ms) Started GET "/borrow_direct/BorrowDirect/11?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:17:41 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.4ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://www.example.com/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A17%3A41-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.5ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 10  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000430\n' WHERE `service_responses`.`id` = 14  (0.5ms) COMMIT Started GET "/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A17%3A41-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 15:17:41 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T15:17:41-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (0.3ms) 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.7ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.2ms) 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.5ms) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.1ms) Permalink Load (0.3ms) 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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 21ms (Views: 12.4ms | ActiveRecord: 3.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:17:41 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50e3092ddfe2c02652a795b8f10b7a9f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 12, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '50e3092ddfe2c02652a795b8f10b7a9f', '1f2487b5ab29a0f58587335258d7f8e0', 12, '127.0.0.1', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.2ms) 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 (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.5ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 55ms (Views: 14.3ms | 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 15:17:41 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98a3db91116eed1adf1e5a4c12ed135d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '98a3db91116eed1adf1e5a4c12ed135d', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 19:17:41')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:17:41' WHERE `dispatched_services`.`id` = 12  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 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.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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.9ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 56ms (Views: 14.3ms | ActiveRecord: 6.4ms) Started GET "/borrow_direct/BorrowDirect/13" for 127.0.0.1 at 2016-08-23 15:17:41 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 13, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:17:41')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A17%3A41-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=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A17%3A41-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 15:17:41 -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-23T15:17:41-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 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.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.3ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.5ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.3ms) COMMIT Completed 200 OK in 24ms (Views: 14.1ms | ActiveRecord: 3.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25953300b494b41f41d0fa7435698210' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 19:17:41')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '25953300b494b41f41d0fa7435698210', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '149c28e56d945c46c141935771be47bc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 15, '2016-08-23 19:17:41')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '149c28e56d945c46c141935771be47bc', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 15, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc191f7dfab007ea170ad8523cc879a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 19:17:41')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cc191f7dfab007ea170ad8523cc879a8', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 16, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:17:41' WHERE `dispatched_services`.`id` = 15  (0.7ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98ca3c69464c20b2a21e6f6a91c250e6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 19:17:41')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '98ca3c69464c20b2a21e6f6a91c250e6', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0b0a7c0f481f55ecba9641db21d1c67' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c0b0a7c0f481f55ecba9641db21d1c67', '9902a1d22a141a826ae31b1c83cb928c', 18, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f958535a4c7b56c56470bbc99e2ff32' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9f958535a4c7b56c56470bbc99e2ff32', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (5.8ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A17%3A41-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.8ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9619f99cbf1dc8b346cedfbcf7649db0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2016-08-23 19:17:41')  (5.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9619f99cbf1dc8b346cedfbcf7649db0', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2016-08-23 19:17:41')  (5.0ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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 19:17:41')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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 29  (0.1ms) BEGIN SQL (0.2ms) 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 29\n', 20, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:17:41')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A17%3A41-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 --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b19a09a36d6df19a5390c23b64c0db8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 19:17:41')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b19a09a36d6df19a5390c23b64c0db8', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A17%3A41-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: 1.9ms) DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 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' ServiceResponse Load (0.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.6ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41' WHERE `dispatched_services`.`id` = 18  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af7e573845a4c11298905656d48cad89' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'af7e573845a4c11298905656d48cad89', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) 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: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b1320d651e316c269073fd72fe7ad8a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.9ms) BEGIN  (1.8ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (1.3ms) 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://bdtest.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 19:17:41' WHERE `dispatched_services`.`id` = 19 SQL (1.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:17:41')  (1.0ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 19:17:41')  (0.8ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 34  (0.1ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6b1320d651e316c269073fd72fe7ad8a', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 19:17:41')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5115355200778a1070baf94e0087a5c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f5115355200778a1070baf94e0087a5c', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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 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://bdtest.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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1cfef4aa293c34b4f12662dd8049a901' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.7ms) BEGIN  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:17:41') SQL (1.0ms) 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://bdtest.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 19:17:41' WHERE `dispatched_services`.`id` = 20 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:17:41')  (0.8ms) COMMIT SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 19:17:41')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 38  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1cfef4aa293c34b4f12662dd8049a901', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.3ms) 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-23T15%3A17%3A41-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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbf3800b54e823e09a4482b7b74e7141' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2016-08-23 19:17:41') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cbf3800b54e823e09a4482b7b74e7141', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a426806cd3abbb3891864cd51e6d6346' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2016-08-23 19:17:41')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a426806cd3abbb3891864cd51e6d6346', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2016-08-23 19:17:41')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67d70added9d52a98c8180ec14539795' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 19:17:41') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '67d70added9d52a98c8180ec14539795', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 28, 'test_holding', 'holding', '2016-08-23 19:17:41')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:17:41')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:17:41', '2016-08-23 19:17:41')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.7ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (7.9ms) 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  (11.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (11.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (35.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (8.8ms) CREATE 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  (11.3ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.1ms) 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  (11.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.4ms) CREATE 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  (11.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.6ms) 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  (10.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (10.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (13.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (12.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (32.0ms) CREATE 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  (11.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (13.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.4ms) 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  (10.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (10.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (13.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'caff532052aaf244a95dcdebef51e85f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:19:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 19:19:46')  (2.0ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'caff532052aaf244a95dcdebef51e85f', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2016-08-23 19:19:46')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:46')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 19:19:46', '2016-08-23 19:19:46')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e3c85402ad194d46c8b43bf326ef801' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:19:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 19:19:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2016-08-23 19:19:46') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2016-08-23 19:19:46')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1e3c85402ad194d46c8b43bf326ef801', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2016-08-23 19:19:46')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (2, '--- {}\n', 'test_holding', 'holding', '2016-08-23 19:19:46')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:46')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2016-08-23 19:19:46', '2016-08-23 19:19:46')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 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 12ms (Views: 6.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.3ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13628f552d2b32116016fcd187759ff1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 19:19:47')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '13628f552d2b32116016fcd187759ff1', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 19:19:47')  (5.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 3  (0.2ms) BEGIN SQL (0.2ms) 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 3\n', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:19:47')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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-23T15%3A19%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 13ms (ActiveRecord: 1.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e267888bf060ab2ddd3da487c3e4f6a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2e267888bf060ab2ddd3da487c3e4f6a', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 19:19:47')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 19:19:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 5  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:19:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A19%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 8ms (ActiveRecord: 1.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1992b1306c3cd5370851d4a07025265e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1992b1306c3cd5370851d4a07025265e', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 5, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:19:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A19%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 13ms (ActiveRecord: 2.2ms) DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47' WHERE `dispatched_services`.`id` = 3  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 8  (0.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9381de2d50019fb7c3522403c366d3b7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9381de2d50019fb7c3522403c366d3b7', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 19:19:47')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Redirected to http://example.org Completed 302 Found in 12ms (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://bdtest.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' Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa58703a747e7082eb5fcaebf84a38b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.3ms) 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  (2.2ms) BEGIN  (2.0ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.9ms) 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://bdtest.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 19:19:47' WHERE `dispatched_services`.`id` = 4 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:19:47')  (0.9ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 19:19:47')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 10  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fa58703a747e7082eb5fcaebf84a38b6', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:19:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.4ms) COMMIT 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a4d3d15d0443c535cd2480456fd596c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6a4d3d15d0443c535cd2480456fd596c', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:19:47')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) 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://bdtest.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' Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ccd76e403a60ab5315d704d4edbda11' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:19:47') SQL (0.8ms) 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://bdtest.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 19:19:47' WHERE `dispatched_services`.`id` = 5 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:19:47')  (0.8ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2016-08-23 19:19:47')  (0.7ms) BEGIN  (1.3ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 14  (0.7ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8ccd76e403a60ab5315d704d4edbda11', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2016-08-23 19:19:47')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (5.8ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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-23T15%3A19%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 13ms (ActiveRecord: 7.0ms)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fb39d9784e8566d5b994062d877f49e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 19:19:47')  (6.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8fb39d9784e8566d5b994062d877f49e', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 19:19:47')  (6.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6036ba006ef1c4c954f72c132114a7d2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6036ba006ef1c4c954f72c132114a7d2', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 11, 'test_holding', 'holding', '2016-08-23 19:19:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:47')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bad4b0acbbd2636155e9131f99e8b5b2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bad4b0acbbd2636155e9131f99e8b5b2', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 19:19:47')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:47')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) 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 15:19:47 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6494cbdb187a1f1d248de6d76902c167' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '6494cbdb187a1f1d248de6d76902c167', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2016-08-23 19:19:47')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 13, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:47')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com\n:backtrace:\n- \"/Users/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 19:19:47' WHERE `dispatched_services`.`id` = 9  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (0.4ms) 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.6ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.3ms) 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.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 (1.5ms) ServiceResponse Load (0.4ms) 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.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) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/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.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.0ms) Rendered /Users/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.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 (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.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) DispatchedService Load (0.3ms) 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.4ms) Rendered /Users/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 (58.0ms) Permalink Load (0.3ms) 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.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 (1.1ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 308ms (Views: 251.0ms | 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 15:19:47 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '153caff85b6772c9dfed8edf0ccaf538' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 14, '2016-08-23 19:19:47') SQL (0.1ms) 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 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '153caff85b6772c9dfed8edf0ccaf538', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:47')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:47' WHERE `dispatched_services`.`id` = 10  (0.5ms) COMMIT Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (0.4ms) 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.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.3ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.2ms) 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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 49ms (Views: 13.6ms | 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 15:19:47 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e3111ea2b13903733af24c67ef4a371' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 15, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2016-08-23 19:19:47') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 15, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '7e3111ea2b13903733af24c67ef4a371', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:47' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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.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.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.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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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 (13.9ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 68ms (Views: 15.2ms | ActiveRecord: 11.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '498e2728a22341f21abd87e0e2e0d969' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:19:47') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 19:19:47') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 16, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '498e2728a22341f21abd87e0e2e0d969', '318e542032e1812e600e07efbdb1dfcc', 16, '0.0.0.0', '2016-08-23 19:19:47')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 16, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=16" for 127.0.0.1 at 2016-08-23 15:19:47 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"16"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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.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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.9ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 24ms (Views: 14.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 15:19:47 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d0915dd06c9e56a5ff0ff23241ca437' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:19:47') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '5d0915dd06c9e56a5ff0ff23241ca437', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 19:19:47', '2016-08-23 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:47')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:47' WHERE `dispatched_services`.`id` = 13  (0.2ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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 (1.2ms) ServiceResponse Load (0.3ms) 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.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 (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.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 [["id", 17]] Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.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 (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_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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.4ms) Rendered /Users/barnabyalter/.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 (25.2ms) Permalink Load (0.2ms) 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 (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.6ms)  (0.2ms) BEGIN  (0.5ms) COMMIT Completed 200 OK in 90ms (Views: 28.0ms | ActiveRecord: 6.5ms) Started GET "/borrow_direct/BorrowDirect/17?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:19:47 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:19:47' WHERE `dispatched_services`.`id` = 13  (5.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47')  (6.1ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A19%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 Completed 303 See Other in 29ms (ActiveRecord: 13.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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:47' WHERE `dispatched_services`.`id` = 13  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25  (0.3ms) COMMIT 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-23T15%3A19%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 15:19:47 -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-23T15:19: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.7ms) 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.3ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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 (5.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) ServiceResponse Load (0.3ms) 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.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.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.0ms) Rendered /Users/barnabyalter/.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.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.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 (1.2ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.5ms) 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.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.6ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 36ms (Views: 21.9ms | ActiveRecord: 5.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:19:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '628ef86c3d19cd21d5d3a9dd1621e5d7' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '628ef86c3d19cd21d5d3a9dd1621e5d7', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.7ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:19:48')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 14  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.2ms) 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.7ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.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.7ms) Permalink Load (0.3ms) 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.3ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 64ms (Views: 15.5ms | ActiveRecord: 5.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:19:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa3848e24dddc04393807c19e2602029' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 19:19:48')  (4.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fa3848e24dddc04393807c19e2602029', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:48')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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.5ms) Rendered /Users/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.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) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.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.1ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 61ms (Views: 14.8ms | ActiveRecord: 10.0ms) Started GET "/borrow_direct/BorrowDirect/19?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:19:48 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 15  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:19:48')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://www.example.com/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-23T15%3A19%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 16ms (ActiveRecord: 8.1ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 15  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000430\n' WHERE `service_responses`.`id` = 30  (0.3ms) COMMIT Started GET "/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-23T15%3A19%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 15:19:48 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"19", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T15:19: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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.6ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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 (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 (11.4ms) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 22ms (Views: 13.0ms | ActiveRecord: 2.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:19:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3dd7bafeb6cfdbad1860d68f95adb95' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd3dd7bafeb6cfdbad1860d68f95adb95', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:19:48')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 16  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.4ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 [["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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.2ms)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 55ms (Views: 14.2ms | ActiveRecord: 6.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 15:19:48 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b24779f9f978bdee0218199bdb5a8489' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 19:19:48')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'b24779f9f978bdee0218199bdb5a8489', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 19:19:48')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:48')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:19:48' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.0ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.2ms) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 57ms (Views: 16.2ms | ActiveRecord: 5.8ms) Started GET "/borrow_direct/BorrowDirect/21" for 127.0.0.1 at 2016-08-23 15:19:48 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:48')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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-23T15%3A19%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=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2016-08-23T15%3A19%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 15:19: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-23T15:19: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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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.7ms) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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 (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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) DispatchedService Load (0.4ms) 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.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.8ms) Permalink Load (0.3ms) 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.2ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 13.9ms | ActiveRecord: 3.4ms) Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc86d7a6e175b0db575157a609d4bb1a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 22, '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 22, '2016-08-23 19:19:48') SQL (0.2ms) INSERT 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 19:19:48') SQL (0.2ms) 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 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 22, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 22, '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 22, '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 22, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 22, '2016-08-23 19:19:48')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'cc86d7a6e175b0db575157a609d4bb1a', '06d451b80bf9fe3ce6849a48c98522d7', 22, 'info:sid/google', '0.0.0.0', '2016-08-23 19:19:48')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 22 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3f87542a8037c3706e5ab6725aedbaf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:19:48') SQL (0.1ms) 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, 23, '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 23, '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e3f87542a8037c3706e5ab6725aedbaf', '62590701c6f35b45309577ef8c8c22b4', 23, '0.0.0.0', '2016-08-23 19:19:48')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11c14649f12a4b9e440321794e0119e1' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 24, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 24, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 24, '2016-08-23 19:19:48') SQL (0.2ms) 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, 24, '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 24, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 24, '2016-08-23 19:19:48')  (6.2ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) 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', '11c14649f12a4b9e440321794e0119e1', 'd95884a882a64501650fb8f9deae5104', 24, 'info:sid/google', '0.0.0.0', '2016-08-23 19:19:48')  (5.7ms) COMMIT ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c2f99c19f12693d50e5980d05835114' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 19:19:48')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1c2f99c19f12693d50e5980d05835114', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2016-08-23 19:19:48')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 25, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:19:48' WHERE `dispatched_services`.`id` = 20  (0.5ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c963fa00fe8b3327551f0d5e2218566a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2016-08-23 19:19:48')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c963fa00fe8b3327551f0d5e2218566a', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2016-08-23 19:19:48')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:19:48')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70514b823936d74a100531d362940c47' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 27, '2016-08-23 19:19:48')  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '70514b823936d74a100531d362940c47', '9902a1d22a141a826ae31b1c83cb928c', 27, '0.0.0.0', '2016-08-23 19:19:48')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:19:48')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c48c3c669d1fa2ae88d5e0a8645dd9f0' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:19:48') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:19:48') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 28, '2016-08-23 19:19:48')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c48c3c669d1fa2ae88d5e0a8645dd9f0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 28, '0.0.0.0', '2016-08-23 19:19:48')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:19:48')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 28, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:19:48')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:19:48', '2016-08-23 19:19:48')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (16.6ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (8.1ms) 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  (16.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (17.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.5ms) CREATE 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  (12.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.7ms) 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  (11.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (9.5ms) CREATE 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  (10.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (12.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (9.6ms) 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  (10.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.3ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (12.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (13.1ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.4ms) CREATE 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  (11.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.3ms) 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  (12.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (12.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (9.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (4797.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (14.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (10.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (9.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (14.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '492305f81745225a43f972be39910d20' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2016-08-23 19:22:26') SQL (0.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '492305f81745225a43f972be39910d20', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.5ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) 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 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e5b3bec290ef64e691a9affab523a1c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3e5b3bec290ef64e691a9affab523a1c', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 19:22:26')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:26')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A26-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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '214de9088e3e1e852207cd0e656ed041' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '214de9088e3e1e852207cd0e656ed041', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 19:22:26')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 4  (0.1ms) BEGIN SQL (0.1ms) 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 4\n', 3, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:22:26')  (0.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A26-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 --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e67f3d164f378836cddf50b6baa9486' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6e67f3d164f378836cddf50b6baa9486', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A26-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.3ms) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 DispatchedService Load (0.6ms) 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 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (1.5ms) BEGIN SQL (0.3ms) 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 19:22:26' WHERE `dispatched_services`.`id` = 2  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba776bda8d31e08e4ffc1a8cc6964fcc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 19:22:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ba776bda8d31e08e4ffc1a8cc6964fcc', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 5, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://example.org Completed 302 Found in 12ms (ActiveRecord: 4.8ms) 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' --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '533ba657c819aee99d532c3ebf2245b8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.2ms) BEGIN  (1.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.7ms) 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 19:22:26' WHERE `dispatched_services`.`id` = 3 SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:22:26')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 19:22:26')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 9  (0.6ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '533ba657c819aee99d532c3ebf2245b8', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41a20e9cabd51a0819223574d73670b0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '41a20e9cabd51a0819223574d73670b0', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 7, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:26')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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.1ms) 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' Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e495cbdb30483c974b4b658f57f7d04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.3ms) BEGIN  (1.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:26') SQL (0.7ms) 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 19:22:26' WHERE `dispatched_services`.`id` = 4 SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:22:26')  (0.8ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2016-08-23 19:22:26')  (0.7ms) BEGIN  (1.1ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1e495cbdb30483c974b4b658f57f7d04', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:22:26')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A26-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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5130dd180edd40684cb9c5f3bea2b9d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c5130dd180edd40684cb9c5f3bea2b9d', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:26')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0a019fe2ed65bca9508c9128d3be50e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e0a019fe2ed65bca9508c9128d3be50e', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:22:26')  (0.3ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42ed337411f9fac06ecab503e2fa346d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '42ed337411f9fac06ecab503e2fa346d', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 11, 'test_holding', 'holding', '2016-08-23 19:22:26')  (0.7ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd699ee975174a6f43bcdf186adef2f55' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2016-08-23 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd699ee975174a6f43bcdf186adef2f55', '9902a1d22a141a826ae31b1c83cb928c', 12, '0.0.0.0', '2016-08-23 19:22:26')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '908ed30e488759960b311892f7fd5805' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '908ed30e488759960b311892f7fd5805', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 19:22:26')  (0.2ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a2dfac94a896d1d03751c3656e0fdab' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 19:22:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4a2dfac94a896d1d03751c3656e0fdab', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 19:22:26')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.3ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c4d0791519a7a609130ca15f0819c94' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 15, '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1c4d0791519a7a609130ca15f0819c94', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 15, '0.0.0.0', '2016-08-23 19:22:26')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8f8ad181f863f94e546a1e861fdd4f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f8f8ad181f863f94e546a1e861fdd4f6', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2016-08-23 19:22:26')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.6ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:26 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9b4439f4b9586cf1f20b6b3bd2cace2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:22:26') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2016-08-23 19:22:26')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f9b4439f4b9586cf1f20b6b3bd2cace2', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2016-08-23 19:22:26')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 17, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:26' WHERE `dispatched_services`.`id` = 9  (0.8ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.7ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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 (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.6ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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.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 (56.0ms) Permalink Load (0.2ms) 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 (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.7ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 287ms (Views: 235.5ms | ActiveRecord: 10.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 15:22:26 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3879b45d8a0f054229ea6ed93285b458' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 19:22:26') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 18, '2016-08-23 19:22:26') SQL (0.1ms) 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 19:22:26')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3879b45d8a0f054229ea6ed93285b458', 'a03fb1fb17f24f5ea845bf6c4450490b', 18, '127.0.0.1', '2016-08-23 19:22:26')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2016-08-23 19:22:26', '2016-08-23 19:22:26')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:26')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:26' WHERE `dispatched_services`.`id` = 10  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.4ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 49ms (Views: 15.8ms | ActiveRecord: 6.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 15:22:26 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca3d95f3eeb288c24496e78ccfe9161d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 19, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 19, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', 'ca3d95f3eeb288c24496e78ccfe9161d', 'bc13b80c2923ce2cbe0c8347141587a7', 19, '127.0.0.1', '2016-08-23 19:22:27')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:27' WHERE `dispatched_services`.`id` = 11  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.3ms) 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.9ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.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 (21.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.1ms) Rendered /Users/barnabyalter/.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.4ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.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.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 (32.9ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 62ms (Views: 34.7ms | ActiveRecord: 5.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6fa1cfe5a2510900a7d9db0817bbd7a7' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 20, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 20, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 20, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6fa1cfe5a2510900a7d9db0817bbd7a7', '318e542032e1812e600e07efbdb1dfcc', 20, '0.0.0.0', '2016-08-23 19:22:27')  (11.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 20, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (6.0ms) COMMIT  (0.2ms) BEGIN  (0.3ms) COMMIT Started GET "/resolve?umlaut.request_id=20" for 127.0.0.1 at 2016-08-23 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"20"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.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/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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.3ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 27ms (Views: 16.9ms | ActiveRecord: 3.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb620e5f5516ccd26e8d57afd1006c47' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fb620e5f5516ccd26e8d57afd1006c47', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 19:22:27')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.4ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:27' WHERE `dispatched_services`.`id` = 13  (0.6ms) COMMIT Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.2ms) 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.9ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.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/.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.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.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.5ms) Permalink Load (0.5ms) 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.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.4ms)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 64ms (Views: 27.8ms | ActiveRecord: 6.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a7085185ff05e29cb5f5ae1f3a09ea6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:22:27') SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 22, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.2ms) 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', '9a7085185ff05e29cb5f5ae1f3a09ea6', '9902a1d22a141a826ae31b1c83cb928c', 22, '127.0.0.1', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:27' WHERE `dispatched_services`.`id` = 14  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.8ms) 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) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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 (5.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 (1.0ms) ServiceResponse Load (0.3ms) 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.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.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.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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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 (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.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 (22.9ms) Permalink Load (0.8ms) 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.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.2ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 72ms (Views: 24.1ms | ActiveRecord: 9.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f7fbd7d53cf37f63aaeaddf7db12ace' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.5ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '2f7fbd7d53cf37f63aaeaddf7db12ace', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (0.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 19:22:27' WHERE `dispatched_services`.`id` = 15  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.9ms) 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) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (2.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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 (5.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) ServiceResponse Load (0.2ms) 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 (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.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.1ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.8ms) Permalink Load (0.4ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 65ms (Views: 17.9ms | ActiveRecord: 9.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7df00c93eb29342681d37dfa973432be' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:22:27') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '7df00c93eb29342681d37dfa973432be', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2016-08-23 19:22:27')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.2ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:27' WHERE `dispatched_services`.`id` = 16  (0.5ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.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 (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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 (16.3ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 54ms (Views: 16.1ms | ActiveRecord: 7.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 15:22:27 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e820a61b89dde900670ffbac6adc574a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e820a61b89dde900670ffbac6adc574a', '1f2487b5ab29a0f58587335258d7f8e0', 25, '127.0.0.1', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 25, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (25) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (25) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (25) DispatchedService Load (0.2ms) 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 SQL (0.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.3ms) COMMIT Umlaut: Threaded service raised exception. 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:27' WHERE `dispatched_services`.`id` = 17  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 LIMIT 1 DispatchedService Load (0.5ms) 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.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.2ms) 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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.6ms) Rendered /Users/barnabyalter/.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.4ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 50ms (Views: 15.1ms | ActiveRecord: 7.7ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c150ce3ee8e10e7281bba05dfe273a9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:22:27') SQL (0.2ms) 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 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2016-08-23 19:22:27')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8c150ce3ee8e10e7281bba05dfe273a9', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.5ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b50ee90126ffd9a61b0235936272d0d' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2016-08-23 19:22:27') SQL (0.2ms) 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 19:22:27') SQL (0.2ms) 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 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2016-08-23 19:22:27') SQL (0.2ms) 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 19:22:27')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1b50ee90126ffd9a61b0235936272d0d', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2016-08-23 19:22:27')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f90aeb4566ce618ce28c288a1edf2900' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2016-08-23 19:22:27') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2016-08-23 19:22:27') SQL (0.2ms) 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 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2016-08-23 19:22:27') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2016-08-23 19:22:27')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'f90aeb4566ce618ce28c288a1edf2900', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 19:22:27')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:27')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:22:27', '2016-08-23 19:22:27')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (21.0ms) DROP DATABASE IF EXISTS `dummy_test`  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (11.0ms) 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  (15.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (16.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (16.9ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (9.0ms) CREATE 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  (11.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (9.4ms) 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  (11.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (8.6ms) CREATE 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  (9.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (11.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (7.2ms) 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  (11.8ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (12.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (20.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (12.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (31.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (11.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (9.0ms) CREATE 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  (17.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (12.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (8.9ms) 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  (9.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (11.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (8.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (10.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (11.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (8.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (7.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (11.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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 15:22:43 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a300c6638e533c334d6966db430ebd8d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:22:43') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2016-08-23 19:22:43')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a300c6638e533c334d6966db430ebd8d', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2016-08-23 19:22:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2016-08-23 19:22:43', '2016-08-23 19:22:43')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (0.2ms) 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 SQL (0.6ms) 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'  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:43')  (0.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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://bdtest.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 19:22:44' WHERE `dispatched_services`.`id` = 1  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (2.1ms) 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 (0.5ms) Referent Load (0.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) 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 (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.4ms) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 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.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.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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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 (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 (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (58.5ms) Permalink Load (0.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /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.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)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 812ms (Views: 261.9ms | ActiveRecord: 13.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 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0e66efdec283c7762e4795e3ad1180d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:22:44') SQL (0.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2016-08-23 19:22:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2016-08-23 19:22:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2016-08-23 19:22:44') SQL (0.1ms) 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 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'd0e66efdec283c7762e4795e3ad1180d', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:44')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 2  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.4ms) 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 (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.3ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 52ms (Views: 16.1ms | 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 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '56d937ee8ceaefc0032d6800f62c6b03' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2016-08-23 19:22:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2016-08-23 19:22:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2016-08-23 19:22:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '56d937ee8ceaefc0032d6800f62c6b03', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 3  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.3ms) 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 (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) ServiceResponse Load (0.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.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/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/barnabyalter/.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.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 (15.4ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 51ms (Views: 19.0ms | ActiveRecord: 5.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bdba04d0c85456e168436c7895dee10' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2016-08-23 19:22:44')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6bdba04d0c85456e168436c7895dee10', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2016-08-23 19:22:44')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (0.8ms) 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.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.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/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 (6.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.1ms) Rendered /Users/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 (25.0ms) Permalink Load (0.5ms) 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.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.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)  (0.4ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 39ms (Views: 26.5ms | ActiveRecord: 4.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bcf8afba5c433bcb5f1d56c7740e34aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.4ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2016-08-23 19:22:44')  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) 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', 'bcf8afba5c433bcb5f1d56c7740e34aa', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2016-08-23 19:22:44')  (6.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (6.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:44')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 5  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.0ms) 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.7ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.5ms) 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.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) ServiceResponse Load (0.3ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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.3ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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 (5.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.0ms) DispatchedService Load (0.3ms) 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.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 (20.6ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 97ms (Views: 21.3ms | ActiveRecord: 19.4ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 5  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:44')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A44-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.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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:44' WHERE `dispatched_services`.`id` = 5  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (1.6ms) 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-23T15%3A22%3A44-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 15:22:44 -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-23T15:22:44-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (6.2ms) 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 (6.8ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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.5ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) DispatchedService Load (0.4ms) 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.6ms) Rendered /Users/barnabyalter/.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 (20.4ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 31ms (Views: 15.6ms | ActiveRecord: 9.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44575b8caa301097e05f01fd9890e592' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2016-08-23 19:22:44')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '44575b8caa301097e05f01fd9890e592', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2016-08-23 19:22:44')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:44')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:44')  (0.3ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 6  (0.4ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.5ms) Rendered /Users/barnabyalter/.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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.4ms) 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.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.1ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 56ms (Views: 14.9ms | ActiveRecord: 5.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3427098f9511c530140eb0f8e207c0a5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:22:44') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2016-08-23 19:22:44')  (2.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '3427098f9511c530140eb0f8e207c0a5', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:44')  (0.2ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 7  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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 (3.2ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.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) DispatchedService Load (0.2ms) 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.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) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 59ms (Views: 15.0ms | ActiveRecord: 8.6ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:22:44 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 7  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:44')  (0.2ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%3A44-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 9ms (ActiveRecord: 1.9ms) DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:44' WHERE `dispatched_services`.`id` = 7  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000430\n' WHERE `service_responses`.`id` = 10  (0.3ms) 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-23T15%3A22%3A44-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 15:22:44 -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-23T15:22:44-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.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/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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.9ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) 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 15:22:44 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e26a9c5189808474bc1db120284e4ec' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:22:44') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2016-08-23 19:22:44')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '9e26a9c5189808474bc1db120284e4ec', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2016-08-23 19:22:44')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2016-08-23 19:22:44', '2016-08-23 19:22:44')  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:45' WHERE `dispatched_services`.`id` = 8  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (0.4ms) 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.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] 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.3ms) Rendered /Users/barnabyalter/.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.3ms) 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.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.6ms) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 55ms (Views: 14.0ms | ActiveRecord: 6.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 15:22:45 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd458e47e3b9a26fc746a82c82e1bfe5f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', 'd458e47e3b9a26fc746a82c82e1bfe5f', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:22:45' WHERE `dispatched_services`.`id` = 9  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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) ServiceResponse Load (0.5ms) 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.4ms) Rendered /Users/barnabyalter/.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) CACHE (0.0ms) 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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.7ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 57ms (Views: 14.3ms | ActiveRecord: 6.1ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2016-08-23 15:22:45 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) 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 19:22:45')  (1.6ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) 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-23T15%3A22%3A45-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 9ms (ActiveRecord: 3.0ms) 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-23T15%3A22%3A45-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 15:22:45 -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-23T15:22:45-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (0.2ms) 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 (0.6ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) CACHE (0.0ms) 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.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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.4ms) 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.0ms) Permalink Load (0.2ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 3.0ms)  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0020cd0f8e98a14b2fcee25b17637be1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 19:22:45')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0020cd0f8e98a14b2fcee25b17637be1', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15c0c4c11a5ceb393319c77c1d948830' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2016-08-23 19:22:45')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15c0c4c11a5ceb393319c77c1d948830', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.4ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43b44bab8b018b63e98a068059f01f20' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '43b44bab8b018b63e98a068059f01f20', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bca4730ca84a3ff932323d8d9ccf214' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6bca4730ca84a3ff932323d8d9ccf214', '1f2487b5ab29a0f58587335258d7f8e0', 13, '0.0.0.0', '2016-08-23 19:22:45')  (0.5ms) COMMIT ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.8ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) COMMIT DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff08fb6ce93edb0ae7513de89087a17d' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:22:45') SQL (0.1ms) 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, 14, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 14, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ff08fb6ce93edb0ae7513de89087a17d', '62590701c6f35b45309577ef8c8c22b4', 14, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1f441c9df66cd9b2981d07e788ae68f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT 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 19:22:45') SQL (0.2ms) 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 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 15, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 15, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 15, '2016-08-23 19:22:45')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'e1f441c9df66cd9b2981d07e788ae68f', '06d451b80bf9fe3ce6849a48c98522d7', 15, 'info:sid/google', '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Exists (0.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 15 LIMIT 1 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eba5acc5326c287f2dc083d0d736bdef' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 16, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 16, '2016-08-23 19:22:45') SQL (0.1ms) 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 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 16, '2016-08-23 19:22:45')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'eba5acc5326c287f2dc083d0d736bdef', 'd95884a882a64501650fb8f9deae5104', 16, 'info:sid/google', '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf469e176ff6f114e43bf8b2ec12fd21' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 17, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cf469e176ff6f114e43bf8b2ec12fd21', '9902a1d22a141a826ae31b1c83cb928c', 17, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47037747e4e4e97898f72ee87eb0b2c5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2016-08-23 19:22:45')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '47037747e4e4e97898f72ee87eb0b2c5', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:22:45')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa163be1aa5e896b06d25e638bf6adfc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 19, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fa163be1aa5e896b06d25e638bf6adfc', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 19, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 19, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '545831a330454e0e50c38bda4f9490d7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2016-08-23 19:22:45')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '545831a330454e0e50c38bda4f9490d7', '1f2487b5ab29a0f58587335258d7f8e0', 20, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 20, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:22:45' WHERE `dispatched_services`.`id` = 19  (0.4ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ----------------------------------------------------------------- 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.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecf03200ea5290ab76faea20d46fb007' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ecf03200ea5290ab76faea20d46fb007', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4830264293ea3b0850cb4b30dc626e4c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2016-08-23 19:22:45')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4830264293ea3b0850cb4b30dc626e4c', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 32  (0.1ms) BEGIN SQL (0.2ms) 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 32\n', 22, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:22:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%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) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '695360d3b4ef130d8a2f64ccee056e87' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '695360d3b4ef130d8a2f64ccee056e87', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%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 Completed 303 See Other in 11ms (ActiveRecord: 2.3ms) DispatchedService Load (4.8ms) 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' ServiceResponse Load (0.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (1.7ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45' WHERE `dispatched_services`.`id` = 20  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35  (0.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6415fb05cfc395d0fcf50c7e8bf08ff' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2016-08-23 19:22:45')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a6415fb05cfc395d0fcf50c7e8bf08ff', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://example.org Completed 302 Found in 11ms (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://bdtest.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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e50dc995978bb954cf4bb30994ee1531' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.1ms) BEGIN  (1.8ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.9ms) 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://bdtest.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 19:22:45' WHERE `dispatched_services`.`id` = 21 SQL (2.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:22:45')  (1.0ms) COMMIT SQL (0.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2016-08-23 19:22:45')  (0.2ms) BEGIN  (1.2ms) COMMIT SQL (0.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (0.1ms) BEGIN  (1.6ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e50dc995978bb954cf4bb30994ee1531', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '507e5323d944f8b5f8858587fb42b890' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '507e5323d944f8b5f8858587fb42b890', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 26, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 26 LIMIT 1 ReferentValue Load (0.2ms) 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 9ms (Views: 0.4ms | 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://bdtest.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' Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f2acfde038c29be6dac7b5f8cea63df' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (2.0ms) BEGIN  (1.7ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:22:45') SQL (0.8ms) 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://bdtest.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 19:22:45' WHERE `dispatched_services`.`id` = 22 SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:22:45')  (0.9ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2016-08-23 19:22:45')  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 41  (0.7ms) BEGIN  (1.5ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2f2acfde038c29be6dac7b5f8cea63df', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2016-08-23 19:22:45')  (0.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:22:45')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A22%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) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a157d62664a88de4a187de2d3a4908cd' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:22:45') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2016-08-23 19:22:45') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2016-08-23 19:22:45')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a157d62664a88de4a187de2d3a4908cd', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:22:45')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:22:45', '2016-08-23 19:22:45')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (14.9ms) DROP DATABASE IF EXISTS `dummy_test`  (0.3ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (9.8ms) 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  (16.3ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (35.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (15.9ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (10.3ms) CREATE 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  (12.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (10.4ms) 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  (11.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (10.7ms) CREATE 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  (12.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (13.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (8.6ms) 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  (12.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (13.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (12.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (16.0ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (36.8ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (14.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (10.5ms) CREATE 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  (10.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (13.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (12.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (9.4ms) 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  (11.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (16.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (10.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (12.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (12.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (9.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (11.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (20.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (15.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (0.2ms) 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 12ms (Views: 5.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (0.2ms) 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 30ms (Views: 0.3ms | ActiveRecord: 14.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bce6ed6c38742b4e2cfa9c975adafa60' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 1, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bce6ed6c38742b4e2cfa9c975adafa60', 'e4f2e6742054acb1be6068a6078c6b4d', 1, '0.0.0.0', '2016-08-23 19:30:57')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"1"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.4ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) 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-23T15%3A30%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 19ms (ActiveRecord: 2.9ms) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8759663e97186cb068e3a2f54ccde7c7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 2, '2016-08-23 19:30:57')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8759663e97186cb068e3a2f54ccde7c7', 'e4f2e6742054acb1be6068a6078c6b4d', 2, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"2"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 2  (0.1ms) BEGIN SQL (0.1ms) 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 2\n', 2, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:30:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A30%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) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1cdc2d7b4555167672fe1aa34edafe8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 3, '2016-08-23 19:30:57')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd1cdc2d7b4555167672fe1aa34edafe8', 'e4f2e6742054acb1be6068a6078c6b4d', 3, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"3"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 3, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A30%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 26ms (ActiveRecord: 3.8ms) DispatchedService Load (0.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 DispatchedService Load (0.7ms) 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 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (1.6ms) BEGIN SQL (0.2ms) 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 19:30:57' WHERE `dispatched_services`.`id` = 1  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (0.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc6ab72f7a02507052069d66243c3ab1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 4, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cc6ab72f7a02507052069d66243c3ab1', 'e4f2e6742054acb1be6068a6078c6b4d', 4, '0.0.0.0', '2016-08-23 19:30:57')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 4, 'BorrowDirect', 'bd_request_prompt', '2016-08-23 19:30:57')  (0.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"4"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 4, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) 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://bdtest.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' --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0734fc501e6d2df63d00de566201593a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (1.7ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.7ms) 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://bdtest.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 19:30:57' WHERE `dispatched_services`.`id` = 2 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2016-08-23 19:30:57')  (0.7ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 5, '2016-08-23 19:30:57')  (0.7ms) BEGIN  (1.2ms) COMMIT SQL (0.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 7  (0.6ms) BEGIN  (1.4ms) COMMIT SQL (0.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0734fc501e6d2df63d00de566201593a', 'e4f2e6742054acb1be6068a6078c6b4d', 5, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.3ms) 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 --------------------------------------------------------------------------- Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42fe47ac1e8ab40f6475083f1e4d948c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '42fe47ac1e8ab40f6475083f1e4d948c', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 6, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.2ms) 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 11ms (Views: 0.3ms | ActiveRecord: 2.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication 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' Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98f3a1754756050f70e2c28d72766de8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (0.4ms) 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  (1.8ms) BEGIN  (0.1ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2016-08-23 19:30:57') SQL (0.7ms) 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://bdtest.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 19:30:57' WHERE `dispatched_services`.`id` = 3 SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2016-08-23 19:30:57')  (3.0ms) COMMIT SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2016-08-23 19:30:57')  (0.1ms) BEGIN  (1.1ms) COMMIT SQL (0.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 11  (0.1ms) BEGIN  (1.2ms) COMMIT SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '98f3a1754756050f70e2c28d72766de8', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.7ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A30%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 13ms (ActiveRecord: 1.6ms) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '442724fdd42ff2f118dd237a57b8043a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '442724fdd42ff2f118dd237a57b8043a', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (6.2ms) COMMIT  (0.2ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53d1d90bc8a06ea9d044c5e4d15fd001' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 9, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 9, '2016-08-23 19:30:57')  (5.1ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '53d1d90bc8a06ea9d044c5e4d15fd001', 'e7e9149c1fdfcd3be6736b651a0064bb', 9, '0.0.0.0', '2016-08-23 19:30:57')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 9, 'test_holding', 'holding', '2016-08-23 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.6ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbb894ca9fc3f761357239869b111fa2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bbb894ca9fc3f761357239869b111fa2', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78f98404b376f041c9be25815dfb0ba5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:57') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '78f98404b376f041c9be25815dfb0ba5', '1f2487b5ab29a0f58587335258d7f8e0', 11, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', 11, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:30:57')  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '093fbdb56a0ebc5d2c9594ddf77c251d' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 12, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '093fbdb56a0ebc5d2c9594ddf77c251d', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 12, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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 19:30:57')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f8a176c3a73f1f50be61a090b58567f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 13, '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9f8a176c3a73f1f50be61a090b58567f', '9902a1d22a141a826ae31b1c83cb928c', 13, '0.0.0.0', '2016-08-23 19:30:57')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 13, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2016-08-23 19:30:57')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '256f21c336a31a8f14c9d8931bca6752' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '256f21c336a31a8f14c9d8931bca6752', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2016-08-23 19:30:57')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (0.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 14, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) 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 19:30:57' WHERE `dispatched_services`.`id` = 10  (0.7ms) COMMIT DispatchedService Load (0.2ms) 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 15:30:57 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbcc099dddbc96a804c3eba2ee3fb6c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2016-08-23 19:30:57') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'fbcc099dddbc96a804c3eba2ee3fb6c0', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2016-08-23 19:30:57')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 15, '2016-08-23 19:30:57', '2016-08-23 19:30:57')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (0.2ms) 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 SQL (5.8ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:57')  (6.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: * Posted with json payload: DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com\n:backtrace:\n- \"/Users/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 19:30:57' WHERE `dispatched_services`.`id` = 11  (0.6ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (0.4ms) 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.4ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.3ms) 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 (1.5ms) ServiceResponse Load (0.4ms) 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.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.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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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 (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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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 (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) DispatchedService Load (0.4ms) 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.5ms) Rendered /Users/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 (56.8ms) Permalink Load (0.2ms) 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 (5.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.7ms)  (0.1ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 326ms (Views: 261.2ms | ActiveRecord: 6.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 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '353c46987ea9786e54d70a80c42899ab' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 16, '2016-08-23 19:30:58') SQL (0.2ms) 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 19:30:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '353c46987ea9786e54d70a80c42899ab', 'a03fb1fb17f24f5ea845bf6c4450490b', 16, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (0.3ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 12  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (0.4ms) 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) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.4ms) Rendered /Users/barnabyalter/.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.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.5ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.6ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.1ms) COMMIT Completed 200 OK in 52ms (Views: 16.5ms | 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 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5e9a02fec6382a50904c1fdd82b8130' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 17, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 17, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 17, '2016-08-23 19:30:58')  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'a5e9a02fec6382a50904c1fdd82b8130', 'bc13b80c2923ce2cbe0c8347141587a7', 17, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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' DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 13  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (0.6ms) 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) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.2ms) 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 (1.9ms) ServiceResponse Load (0.4ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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_heading.html.erb (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.5ms) Rendered /Users/barnabyalter/.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_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.0ms) Rendered /Users/barnabyalter/.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.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.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) DispatchedService Load (0.4ms) 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.5ms) Rendered /Users/barnabyalter/.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.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 (21.3ms) Permalink Load (0.4ms) 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 (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.2ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 71ms (Views: 24.2ms | ActiveRecord: 7.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1989b63e5b75ebf8978e58bf6450523' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2016-08-23 19:30:58') SQL (0.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 18, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 18, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 18, '2016-08-23 19:30:58')  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a1989b63e5b75ebf8978e58bf6450523', '318e542032e1812e600e07efbdb1dfcc', 18, '0.0.0.0', '2016-08-23 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 18, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Started GET "/resolve?umlaut.request_id=18" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"18"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (0.2ms) 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.3ms) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_coins.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/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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.5ms) DispatchedService Load (0.6ms) 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 (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/_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.9ms) Permalink Load (1.1ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 38ms (Views: 23.9ms | ActiveRecord: 4.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db357409a83194cbf9acc510ee532dd8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2016-08-23 19:30:58')  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 'db357409a83194cbf9acc510ee532dd8', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (0.2ms) 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 SQL (0.5ms) 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'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:58')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.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) Request Load (0.3ms) 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 (4.7ms) Rendered /Users/barnabyalter/Sites/barnaby.dev/htdocs/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.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 (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 (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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 (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 (18.0ms) Permalink Load (0.3ms) 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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 71ms (Views: 17.6ms | ActiveRecord: 7.5ms) Started GET "/borrow_direct/BorrowDirect/19?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 15  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2016-08-23 19:30:58')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://www.example.com/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-23T15%3A30%3A58-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) 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' DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.3ms) 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 19:30:58' WHERE `dispatched_services`.`id` = 15  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 29  (0.2ms) COMMIT Started GET "/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-23T15%3A30%3A58-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 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"19", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2016-08-23T15:30:58-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (0.4ms) 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.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.2ms) 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 (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) ServiceResponse Load (0.3ms) 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.3ms) Rendered /Users/barnabyalter/.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 (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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (14.7ms) Permalink Load (0.2ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 25ms (Views: 14.8ms | ActiveRecord: 4.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '82156c1a3835d6a3d79a084071f3a0c7' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 20, '2016-08-23 19:30:58')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '82156c1a3835d6a3d79a084071f3a0c7', '9902a1d22a141a826ae31b1c83cb928c', 20, '127.0.0.1', '2016-08-23 19:30:58')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (0.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (0.2ms) 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 SQL (0.4ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 16  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (0.5ms) 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) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.3ms) 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.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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.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) DispatchedService Load (0.3ms) 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 (12.6ms) Permalink Load (0.2ms) 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.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)  (0.1ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 53ms (Views: 13.2ms | ActiveRecord: 5.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '291f43edff181c5ba4e9e27877cd7f4f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2016-08-23 19:30:58')  (12.7ms) COMMIT  (0.2ms) BEGIN SQL (0.2ms) 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', '291f43edff181c5ba4e9e27877cd7f4f', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (0.2ms) 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 SQL (0.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 17  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.3ms) 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) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 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.4ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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.8ms) Permalink Load (0.2ms) 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.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.1ms)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 70ms (Views: 14.3ms | ActiveRecord: 18.6ms) Started GET "/borrow_direct/BorrowDirect/21?pickup_location=Main+Library" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"Main Library", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (0.3ms) 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  (0.2ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 17  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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 19:30:58')  (0.3ms) COMMIT Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) 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-23T15%3A30%3A58-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 17ms (ActiveRecord: 2.7ms) DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 17  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: DUMMY_BD_LIBRARY_SYMBOL-90000430\n' WHERE `service_responses`.`id` = 34  (0.7ms) 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-23T15%3A30%3A58-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 15:30:58 -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-23T15:30:58-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"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (0.2ms) 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.6ms) Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.4ms) 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) ServiceResponse Load (0.2ms) 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.6ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (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/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.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.0ms) Rendered /Users/barnabyalter/.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) DispatchedService Load (0.3ms) 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.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 (11.0ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 21ms (Views: 12.2ms | ActiveRecord: 3.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c300a17c855ed4b8f5b8487b3329992f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) 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', 'c300a17c855ed4b8f5b8487b3329992f', '1f2487b5ab29a0f58587335258d7f8e0', 22, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (0.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (0.2ms) 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 SQL (0.3ms) 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'  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', 22, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2016-08-23 19:30:58')  (0.5ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 18  (0.7ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (0.2ms) 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) Referent Load (0.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.3ms) 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.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) Permalink Load (0.3ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 51ms (Views: 13.4ms | ActiveRecord: 5.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 15:30:58 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (0.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c6519f33fa0b3cdb32cd29a78fa31ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2016-08-23 19:30:58')  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) 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', '7c6519f33fa0b3cdb32cd29a78fa31ac', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (0.2ms) 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 SQL (6.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'  (0.2ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (6.5ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2016-08-23 19:30:58' WHERE `dispatched_services`.`id` = 19  (0.3ms) COMMIT Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.5ms) 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.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.3ms) 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.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) ServiceResponse Load (0.3ms) 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 (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) Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 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.3ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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.1ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) DispatchedService Load (0.3ms) 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 (13.7ms) Permalink Load (0.2ms) 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.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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 72ms (Views: 14.1ms | ActiveRecord: 6.3ms) Started GET "/borrow_direct/BorrowDirect/23" for 127.0.0.1 at 2016-08-23 15:30:58 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.2ms) BEGIN SQL (0.3ms) 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 19:30:58')  (0.4ms) COMMIT Referent Load (0.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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-23T15%3A30%3A58-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.9ms) 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-23T15%3A30%3A58-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 15:30:58 -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-23T15:30:58-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"} Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (0.5ms) 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.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.2ms) 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.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) ServiceResponse Load (0.4ms) 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.3ms) Rendered /Users/barnabyalter/.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) Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 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.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/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/barnabyalter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/umlaut-4.1.7/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/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) DispatchedService Load (0.2ms) 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.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.0ms) Permalink Load (0.3ms) 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)  (0.2ms) BEGIN  (0.2ms) COMMIT Completed 200 OK in 22ms (Views: 13.4ms | ActiveRecord: 3.7ms) Request Load (0.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '905c49ac8016d909b38bd5b1e807eefc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2016-08-23 19:30:58')  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '905c49ac8016d909b38bd5b1e807eefc', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2016-08-23 19:30:58')  (0.4ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.3ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.1ms) ROLLBACK Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'daca7f22b8e36022dece7ffeb64ebb0f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'daca7f22b8e36022dece7ffeb64ebb0f', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.4ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a8cda37acb182752c652b69bdcf7b26' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 26, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 26, '2016-08-23 19:30:58') SQL (0.2ms) 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, 26, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 26, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 26, '2016-08-23 19:30:58')  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '1a8cda37acb182752c652b69bdcf7b26', 'd95884a882a64501650fb8f9deae5104', 26, 'info:sid/google', '0.0.0.0', '2016-08-23 19:30:58')  (0.3ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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 19:30:58')  (0.4ms) COMMIT DispatchedService Load (0.2ms) 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  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (0.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '284639c9bb9faf67bd94014dd740bada' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2016-08-23 19:30:58') SQL (0.1ms) 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, 27, '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 27, '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '284639c9bb9faf67bd94014dd740bada', '62590701c6f35b45309577ef8c8c22b4', 27, '0.0.0.0', '2016-08-23 19:30:58')  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `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-23 19:30:58')  (0.6ms) COMMIT ServiceResponse Load (0.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC Request Load (0.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58b1b37776a64b209aae07bc23c9dcf2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2016-08-23 19:30:58') SQL (0.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT 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 19:30:58') SQL (0.2ms) 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 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 28, '2016-08-23 19:30:58') SQL (0.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 28, '2016-08-23 19:30:58')  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) 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', '58b1b37776a64b209aae07bc23c9dcf2', '06d451b80bf9fe3ce6849a48c98522d7', 28, 'info:sid/google', '0.0.0.0', '2016-08-23 19:30:58')  (1.9ms) COMMIT DispatchedService Load (0.3ms) 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  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2016-08-23 19:30:58', '2016-08-23 19:30:58')  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT DispatchedService Load (0.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Exists (0.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 28 LIMIT 1