Build Test Lint of main by @ShanaLMoore #83
85 tests run, 62 passed, 14 skipped, 9 failed.
Annotations
Check failure on line 13 in spec/models/hyrax/contact_form_spec.rb
github-actions / JUnit Test Report
./spec/models/hyrax/contact_form_spec.rb.Hyrax::ContactForm headers site email set uses the Site email
uninitialized constant Settings
Raw output
Failure/Error: allow(Settings).to receive(:contact_email_to).and_return('hyrax@email.com')
NameError:
uninitialized constant Settings
./spec/models/hyrax/contact_form_spec.rb:13:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
Check failure on line 13 in spec/models/hyrax/contact_form_spec.rb
github-actions / JUnit Test Report
./spec/models/hyrax/contact_form_spec.rb.Hyrax::ContactForm headers no email set uses the hyrax setting
uninitialized constant Settings
Raw output
Failure/Error: allow(Settings).to receive(:contact_email_to).and_return('hyrax@email.com')
NameError:
uninitialized constant Settings
./spec/models/hyrax/contact_form_spec.rb:13:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
Check failure on line 80 in spec/models/bulkrax/csv_entry_spec.rb
github-actions / JUnit Test Report
./spec/models/bulkrax/csv_entry_spec.rb.Bulkrax::CsvEntry#build_metadata assigns factory_class and parsed_metadata
No such file or directory @ rb_sysopen - /app/samvera/hyrax-webapp/spec/fixtures/csv/entry.csv
Raw output
Failure/Error: entry.build_metadata
Errno::ENOENT:
No such file or directory @ rb_sysopen - /app/samvera/hyrax-webapp/spec/fixtures/csv/entry.csv
/usr/local/bundle/gems/bulkrax-5.3.0/app/models/bulkrax/csv_entry.rb:27:in `read_data'
/usr/local/bundle/gems/bulkrax-5.3.0/app/parsers/bulkrax/csv_parser.rb:19:in `records'
/usr/local/bundle/gems/bulkrax-5.3.0/app/parsers/bulkrax/csv_parser.rb:84:in `import_fields'
/usr/local/bundle/gems/bulkrax-5.3.0/app/models/bulkrax/importer.rb:73:in `default_field_mapping'
/usr/local/bundle/gems/bulkrax-5.3.0/app/models/bulkrax/importer.rb:66:in `mapping'
/usr/local/bundle/gems/bulkrax-5.3.0/app/parsers/bulkrax/csv_parser.rb:96:in `missing_elements'
/usr/local/bundle/gems/bulkrax-5.3.0/app/parsers/bulkrax/csv_parser.rb:88:in `required_elements?'
/usr/local/bundle/gems/bulkrax-5.3.0/app/models/bulkrax/csv_entry.rb:92:in `validate_record'
/usr/local/bundle/gems/bulkrax-5.3.0/app/models/bulkrax/csv_entry.rb:72:in `build_metadata'
./spec/models/bulkrax/csv_entry_spec.rb:80:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
Check failure on line 40 in spec/models/user_spec.rb
github-actions / JUnit Test Report
./spec/models/user_spec.rb.User#site_roles fetches the global roles assigned to the user
expected collection contained: ["admin", "registered"]
actual collection contained: ["admin"]
the missing elements were: ["registered"]
Raw output
Failure/Error: expect(subject.site_roles.pluck(:name)).to match_array ['admin', 'registered']
expected collection contained: ["admin", "registered"]
actual collection contained: ["admin"]
the missing elements were: ["registered"]
./spec/models/user_spec.rb:40:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
Check failure on line 12 in spec/models/user_spec.rb
github-actions / JUnit Test Report
./spec/models/user_spec.rb.User the first created user in global tenant does not get the admin role
Factory not registered: "base_user"
Raw output
Failure/Error: subject { FactoryBot.create(:base_user) }
KeyError:
Factory not registered: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/decorator.rb:12:in `method_missing'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/internal.rb:70:in `factory_by_name'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/factory_runner.rb:12:in `run'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/strategy_syntax_method_registrar.rb:28:in `block in define_singular_strategy_method'
./spec/models/user_spec.rb:5:in `block (3 levels) in <top (required)>'
./spec/models/user_spec.rb:12:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
------------------
--- Caused by: ---
KeyError:
key not found: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
Check failure on line 48 in spec/models/user_spec.rb
github-actions / JUnit Test Report
./spec/models/user_spec.rb.User#site_roles= assigns global roles to the user
expected collection contained: ["registered"]
actual collection contained: []
the missing elements were: ["registered"]
Raw output
Failure/Error: expect(subject.site_roles.pluck(:name)).to match_array ['registered']
expected collection contained: ["registered"]
actual collection contained: []
the missing elements were: ["registered"]
./spec/models/user_spec.rb:48:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
Check failure on line 27 in spec/models/user_spec.rb
github-actions / JUnit Test Report
./spec/models/user_spec.rb.User a subsequent user does not get the admin role
Factory not registered: "base_user"
Raw output
Failure/Error: let!(:first_user) { FactoryBot.create(:base_user) }
KeyError:
Factory not registered: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/decorator.rb:12:in `method_missing'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/internal.rb:70:in `factory_by_name'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/factory_runner.rb:12:in `run'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/strategy_syntax_method_registrar.rb:28:in `block in define_singular_strategy_method'
./spec/models/user_spec.rb:27:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
------------------
--- Caused by: ---
KeyError:
key not found: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
Check failure on line 21 in spec/models/user_spec.rb
github-actions / JUnit Test Report
./spec/models/user_spec.rb.User the first created user on a tenant is given the admin role
Factory not registered: "base_user"
Raw output
Failure/Error: subject { FactoryBot.create(:base_user) }
KeyError:
Factory not registered: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/decorator.rb:12:in `method_missing'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/internal.rb:70:in `factory_by_name'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/factory_runner.rb:12:in `run'
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/strategy_syntax_method_registrar.rb:28:in `block in define_singular_strategy_method'
./spec/models/user_spec.rb:18:in `block (3 levels) in <top (required)>'
./spec/models/user_spec.rb:21:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'
------------------
--- Caused by: ---
KeyError:
key not found: "base_user"
/usr/local/bundle/gems/factory_bot-6.2.1/lib/factory_bot/registry.rb:23:in `find'
Check failure on line 29 in spec/controllers/hyrax/hyrax/images_controller_spec.rb
github-actions / JUnit Test Report
./spec/controllers/hyrax/hyrax/images_controller_spec.rb.Hyrax::ImagesController#presenter initializes a presenter
Blacklight::Exceptions::RecordNotFound
Raw output
Failure/Error: subject { controller.send :presenter }
Blacklight::Exceptions::RecordNotFound:
Blacklight::Exceptions::RecordNotFound
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/solr/repository.rb:14:in `find'
/usr/local/bundle/gems/blacklight-6.25.0/app/models/concerns/blacklight/document/active_model_shim.rb:29:in `find'
/usr/local/bundle/gems/hyrax-3.5.0/app/search_builders/hyrax/filter_suppressed_with_roles.rb:25:in `only_active_works'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:147:in `block (2 levels) in processed_parameters'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:146:in `each'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:146:in `block in processed_parameters'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:145:in `tap'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:145:in `processed_parameters'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/search_builder.rb:119:in `to_hash'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/solr/repository.rb:61:in `block in send_and_receive'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/solr/repository.rb:59:in `send_and_receive'
/usr/local/bundle/gems/blacklight-6.25.0/lib/blacklight/solr/repository.rb:22:in `search'
/usr/local/bundle/gems/blacklight-6.25.0/app/controllers/concerns/blacklight/search_helper.rb:59:in `search_results'
./hyrax-webapp/app/controllers/concerns/hyrax/works_controller_behavior.rb:290:in `search_result_document'
./hyrax-webapp/app/controllers/concerns/hyrax/works_controller_behavior.rb:221:in `presenter'
./spec/controllers/hyrax/hyrax/images_controller_spec.rb:20:in `block (3 levels) in <top (required)>'
./spec/controllers/hyrax/hyrax/images_controller_spec.rb:29:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/webmock-3.19.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
./hyrax-webapp/spec/support/multitenancy_metadata.rb:50:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
./spec/spec_helper.rb:10:in `block (2 levels) in <top (required)>'