Skip to content

Build Test Lint of main by @jeremyf #129

Build Test Lint of main by @jeremyf

Build Test Lint of main by @jeremyf #129

GitHub Actions / JUnit Test Report failed Oct 4, 2023 in 0s

38 tests run, 20 passed, 12 skipped, 6 failed.

Annotations

Check failure on line 31 in spec/controllers/hyrax/hyrax/admin/appearances_controller_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/controllers/hyrax/hyrax/admin/appearances_controller_spec.rb.Hyrax::Admin::AppearancesController with an administrator GET #show assigns the requested site as @site

No such file or directory @ rb_sysopen - config/home_themes.yml
Raw output
Failure/Error: get :show, params: {}

Errno::ENOENT:
  No such file or directory @ rb_sysopen - config/home_themes.yml
/usr/local/bundle/gems/psych-3.3.4/lib/psych.rb:582:in `initialize'
/usr/local/bundle/gems/psych-3.3.4/lib/psych.rb:582:in `open'
/usr/local/bundle/gems/psych-3.3.4/lib/psych.rb:582:in `unsafe_load_file'
./hyrax-webapp/app/controllers/hyrax/admin/appearances_controller.rb:19:in `show'
/usr/local/bundle/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing/template_assertions.rb:62:in `process'
/usr/local/bundle/gems/devise-4.9.2/lib/devise/test/controller_helpers.rb:35:in `block in process'
/usr/local/bundle/gems/devise-4.9.2/lib/devise/test/controller_helpers.rb:104:in `catch'
/usr/local/bundle/gems/devise-4.9.2/lib/devise/test/controller_helpers.rb:104:in `_catch_warden'
/usr/local/bundle/gems/devise-4.9.2/lib/devise/test/controller_helpers.rb:35:in `process'
/usr/local/bundle/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing/integration.rb:16:in `block (2 levels) in <module:Integration>'
./spec/controllers/hyrax/hyrax/admin/appearances_controller_spec.rb:31:in `block (4 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

See this annotation in the file changed.

@github-actions 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 40 in spec/models/user_spec.rb

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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 21 in spec/models/user_spec.rb

See this annotation in the file changed.

@github-actions 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 48 in spec/models/user_spec.rb

See this annotation in the file changed.

@github-actions 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)>'