Skip to content

Build of 907/merge by @ekemeyer #567

Build of 907/merge by @ekemeyer

Build of 907/merge by @ekemeyer #567

GitHub Actions / JUnit Test Report failed Aug 27, 2024 in 0s

224 tests run, 150 passed, 9 skipped, 65 failed.

Annotations

Check failure on line 8 in spec/services/ams/migrations/audit/ams2_asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/ams2_asset_spec.rb.AMS::Migrations::Audit::AMS2Asset with an invalid solr document .new raises an error

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/ams2_asset_spec.rb:8:in `block (2 levels) in <top (required)>'

Check failure on line 8 in spec/services/ams/migrations/audit/ams2_asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/ams2_asset_spec.rb.AMS::Migrations::Audit::AMS2Asset with a valid AMS 2 SolrDocument #solr_document returns the correct SolrDocument

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/ams2_asset_spec.rb:8:in `block (2 levels) in <top (required)>'

Check failure on line 8 in spec/services/ams/migrations/audit/ams2_asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/ams2_asset_spec.rb.AMS::Migrations::Audit::AMS2Asset with a valid AMS 2 SolrDocument #digital_instantiations_count returns the number of digital instantiations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/ams2_asset_spec.rb:8:in `block (2 levels) in <top (required)>'

Check failure on line 8 in spec/services/ams/migrations/audit/ams2_asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/ams2_asset_spec.rb.AMS::Migrations::Audit::AMS2Asset with a valid AMS 2 SolrDocument #physical_instantiations_count returns the number of physical instantiations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/ams2_asset_spec.rb:8:in `block (2 levels) in <top (required)>'

Check failure on line 8 in spec/services/ams/migrations/audit/ams2_asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/ams2_asset_spec.rb.AMS::Migrations::Audit::AMS2Asset with a valid AMS 2 SolrDocument #essence_tracks_count returns the number of essence tracks

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/ams2_asset_spec.rb:8:in `block (2 levels) in <top (required)>'

Check failure on line 21 in spec/models/admin_data_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/admin_data_spec.rb.AdminData when it has an associated Fedora object and Solr document (as it always should) #asset returns the asset

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/admin_data_spec.rb:21:in `block (3 levels) in <top (required)>'

Check failure on line 21 in spec/models/admin_data_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/admin_data_spec.rb.AdminData when it has an associated Fedora object and Solr document (as it always should) #solr_doc returns the solr document

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/admin_data_spec.rb:21:in `block (3 levels) in <top (required)>'

Check failure on line 9 in spec/services/ams/export/search/catalog_search_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/search/catalog_search_spec.rb.AMS::Export::Search::CatalogSearch when searching for AssetResource records #solr_documents is expected to return solr documents for the found AssetResource records

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/search/catalog_search_spec.rb:9:in `block (3 levels) in <top (required)>'

Check failure on line 9 in spec/services/ams/export/search/catalog_search_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/search/catalog_search_spec.rb.AMS::Export::Search::CatalogSearch when searching for AssetResource records #num_found is expected to return number of AssetResources in the query

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/search/catalog_search_spec.rb:9:in `block (3 levels) in <top (required)>'

Check failure on line 13 in spec/features/pbcore_xml_endpoints_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pbcore_xml_endpoints_spec.rb.PBCore XML endpoints for an AssetResource record /concerns/asset_resources/[id].xml returns the PBCore XML

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pbcore_xml_endpoints_spec.rb:8:in `block (3 levels) in <top (required)>'
./spec/features/pbcore_xml_endpoints_spec.rb:13:in `block (4 levels) in <top (required)>'

Check failure on line 9 in spec/features/pushes_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pushes_spec.rb.Pushes features #pushes gets the correct record set for needs_updating

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pushes_spec.rb:9:in `block (2 levels) in <top (required)>'

Check failure on line 9 in spec/features/pushes_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pushes_spec.rb.Pushes features #pushes gives validation error when invalid GUID input data

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pushes_spec.rb:9:in `block (2 levels) in <top (required)>'

Check failure on line 9 in spec/features/pushes_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pushes_spec.rb.Pushes features #pushes gives all clear for valid GUID input data

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pushes_spec.rb:9:in `block (2 levels) in <top (required)>'

Check failure on line 9 in spec/features/pushes_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pushes_spec.rb.Pushes features #pushes can submit a push successfully

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pushes_spec.rb:9:in `block (2 levels) in <top (required)>'

Check failure on line 9 in spec/features/pushes_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/pushes_spec.rb.Pushes features #pushes gets the correct record set when navigating from a catalog search

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/pushes_spec.rb:9:in `block (2 levels) in <top (required)>'

Check failure on line 12 in spec/controllers/api/assets_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/controllers/api/assets_controller_spec.rb.API::AssetsController GET /api/assets/{id} when username and password are correct, when an Asset exists when the format is .json responds with a 200 status

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/controllers/api/assets_controller_spec.rb:38:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:39:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:12:in `block (3 levels) in <top (required)>'

Check failure on line 12 in spec/controllers/api/assets_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/controllers/api/assets_controller_spec.rb.API::AssetsController GET /api/assets/{id} when username and password are correct, when an Asset exists when the format is .json response with the JSON for an Asset

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/controllers/api/assets_controller_spec.rb:38:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:39:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:12:in `block (3 levels) in <top (required)>'

Check failure on line 12 in spec/controllers/api/assets_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/controllers/api/assets_controller_spec.rb.API::AssetsController GET /api/assets/{id} when username and password are correct, when an Asset exists when the format is .xml responds with a 200 status

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/controllers/api/assets_controller_spec.rb:38:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:39:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:12:in `block (3 levels) in <top (required)>'

Check failure on line 12 in spec/controllers/api/assets_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/controllers/api/assets_controller_spec.rb.API::AssetsController GET /api/assets/{id} when username and password are correct, when an Asset exists when the format is .xml responds with the PBCore XML for an Asset

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/controllers/api/assets_controller_spec.rb:38:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:39:in `block (5 levels) in <top (required)>'
./spec/controllers/api/assets_controller_spec.rb:12:in `block (3 levels) in <top (required)>'

Check failure on line 11 in spec/services/ams/export/search/digital_instantiations_search_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/search/digital_instantiations_search_spec.rb.AMS::Export::Search::DigitalInstantiationsSearch solr_documents returns all of the DigitalInstantiation Solr documents that are members of the the Assets records returned by the search params

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/export/search/digital_instantiations_search_spec.rb:16:in `block (4 levels) in <top (required)>'
./spec/services/ams/export/search/digital_instantiations_search_spec.rb:11:in `times'
./spec/services/ams/export/search/digital_instantiations_search_spec.rb:11:in `each'
./spec/services/ams/export/search/digital_instantiations_search_spec.rb:11:in `map'
./spec/services/ams/export/search/digital_instantiations_search_spec.rb:11:in `block (3 levels) in <top (required)>'

Check failure on line 16 in spec/models/push_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/push_spec.rb.Push validation when all IDs are well formed and exist in the repository is valid

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/models/push_spec.rb:5:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:6:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:14:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:11:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:16:in `block (4 levels) in <top (required)>'

Check failure on line 23 in spec/models/push_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/push_spec.rb.Push validation when some IDs do not exist in the repository is not valid and has errors on the :pushed_id_csv field indicating which IDs are not in the repository

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/models/push_spec.rb:5:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:6:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:21:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:11:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:23:in `block (4 levels) in <top (required)>'

Check failure on line 48 in spec/models/push_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/push_spec.rb.Push validation when the IDs exists, but some are missing children lists only the Asset IDs missing children in the error message

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/push_spec.rb:41:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:43:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:11:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:48:in `block (4 levels) in <top (required)>'

Check failure on line 45 in spec/models/push_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/push_spec.rb.Push validation when the IDs exists, but some are missing children

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/push_spec.rb:41:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:43:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:11:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:45:in `block (4 levels) in <top (required)>'

Check failure on line 64 in spec/models/push_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/push_spec.rb.Push validation when asset has not been validated lists the unvalidated asset IDs in the error message

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/push_spec.rb:58:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:59:in `block (4 levels) in <top (required)>'
./spec/models/push_spec.rb:11:in `block (3 levels) in <top (required)>'
./spec/models/push_spec.rb:64:in `block (4 levels) in <top (required)>'