Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ManageIQ w/Rails 6 #179

Closed
wants to merge 1 commit into from
Closed

Conversation

@NickLaMuro
Copy link
Member Author

NickLaMuro commented Sep 29, 2020

Previous Error
$ bundle exec rspec
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<Hamlit::RailsTemplate:0x00007f8ed68b2bc8>.call(template)
To:
  >> #<Hamlit::RailsTemplate:0x00007f8ed68b2bc8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** Using session_store: ActionDispatch::Session::MemoryStore
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<ActionView::Template::Handlers::RJS:0x00007f8ecf616cb8>.call(template)
To:
  >> #<ActionView::Template::Handlers::RJS:0x00007f8ecf616cb8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** ManageIQ master, codename: Kasparov

An error occurred while loading spec_helper.
Failure/Error: require 'rspec/rails'

TypeError:
  superclass mismatch for class TestSession
# ~/.gem/ruby/2.6.3/gems/actionpack-6.0.3.3/lib/action_controller/test_case.rb:179:in `<module:ActionController>'
# ~/.gem/ruby/2.6.3/gems/actionpack-6.0.3.3/lib/action_controller/test_case.rb:13:in `<top (required)>'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ./spec/spec_helper.rb:11:in `<top (required)>'
No examples found.


Finished in 0.00005 seconds (files took 8.53 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Previous Error
$ bundle exec rspec
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<Hamlit::RailsTemplate:0x00007fbbc73f65d0>.call(template)
To:
  >> #<Hamlit::RailsTemplate:0x00007fbbc73f65d0>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** Using session_store: ActionDispatch::Session::MemoryStore
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<ActionView::Template::Handlers::RJS:0x00007fbbc2b8bae8>.call(template)
To:
  >> #<ActionView::Template::Handlers::RJS:0x00007fbbc2b8bae8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** ManageIQ master, codename: Kasparov

An error occurred while loading spec_helper.
Failure/Error: extend RSpec::Mocks::ExampleMethods

NameError:
  uninitialized constant RSpec::Mocks::ExampleMethods
# ./spec/support/evm_spec_helper.rb:13:in `<module:EvmSpecHelper>'
# ./spec/support/evm_spec_helper.rb:12:in `<top (required)>'
# ./spec/spec_helper.rb:21:in `block in <top (required)>'
# ./spec/spec_helper.rb:21:in `each'
# ./spec/spec_helper.rb:21:in `<top (required)>'
No examples found.


Finished in 0.00004 seconds (files took 8.12 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Previous Error
$ bundle exec rspec
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<Hamlit::RailsTemplate:0x00007fbbc73f65d0>.call(template)
To:
  >> #<Hamlit::RailsTemplate:0x00007fbbc73f65d0>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** Using session_store: ActionDispatch::Session::MemoryStore
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<ActionView::Template::Handlers::RJS:0x00007fbbc2b8bae8>.call(template)
To:
  >> #<ActionView::Template::Handlers::RJS:0x00007fbbc2b8bae8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** ManageIQ master, codename: Kasparov

An error occurred while loading spec_helper.
Failure/Error: extend RSpec::Mocks::ExampleMethods

NameError:
  uninitialized constant RSpec::Mocks::ExampleMethods
# ./spec/support/evm_spec_helper.rb:13:in `<module:EvmSpecHelper>'
# ./spec/support/evm_spec_helper.rb:12:in `<top (required)>'
# ./spec/spec_helper.rb:21:in `block in <top (required)>'
# ./spec/spec_helper.rb:21:in `each'
# ./spec/spec_helper.rb:21:in `<top (required)>'
No examples found.


Finished in 0.00004 seconds (files took 8.12 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Current Error
$ bundle exec rspec
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<Hamlit::RailsTemplate:0x00007fcc104cf5e8>.call(template)
To:
  >> #<Hamlit::RailsTemplate:0x00007fcc104cf5e8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** Using session_store: ActionDispatch::Session::MemoryStore
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<ActionView::Template::Handlers::RJS:0x00007fcc10b7d9a8>.call(template)
To:
  >> #<ActionView::Template::Handlers::RJS:0x00007fcc10b7d9a8>.call(template, source)
 (called from <top (required)> at ~/code/redhat/manageiq/config/environment.rb:5)
** ManageIQ master, codename: Kasparov
DEPRECATION WARNING: `Module#parent` has been renamed to `module_parent`. `parent` is deprecated and will be removed in Rails 6.1. (called from <module:ComponentAnsibleSender> at ~/.gem/ruby/2.6.3/bundler/gems/manageiq-providers-lenovo-74eba67225f5/app/models/manageiq/providers/lenovo/physical_infra_manager/operations/component_ansible_sender.rb:7)

An error occurred while loading ./spec/tools/radar/rollup_radar_mixin_spec.rb. - Did you mean?
                    rspec ./spec/models/metric/ci_mixin/rollup_spec.rb

Failure/Error: require './tools/radar/rollup_radar_mixin.rb'

LoadError:
  Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.4), already activated sqlite3-1.3.13. Make sure all dependencies are added to Gemfile.
# ~/.gem/ruby/2.6.3/gems/activerecord-6.0.3.3/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `<top (required)>'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activerecord-6.0.3.3/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
# ~/.gem/ruby/2.6.3/gems/activerecord-6.0.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:1052:in `establish_connection'
# ~/.gem/ruby/2.6.3/gems/activerecord-6.0.3.3/lib/active_record/connection_handling.rb:51:in `establish_connection'
# ./tools/radar/rollup_radar_mixin.rb:16:in `<class:MaxByLabel>'
# ./tools/radar/rollup_radar_mixin.rb:15:in `<module:RollupRadarMixin>'
# ./tools/radar/rollup_radar_mixin.rb:11:in `<top (required)>'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
# ./spec/tools/radar/rollup_radar_mixin_spec.rb:1:in `<top (required)>'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:318:in `load'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:318:in `block in load'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
# ~/.gem/ruby/2.6.3/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:318:in `load'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
#   can't activate sqlite3 (~> 1.4), already activated sqlite3-1.3.13. Make sure all dependencies are added to Gemfile.
#   ~/.gem/ruby/2.6.3/gems/activerecord-6.0.3.3/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `<top (required)>'


Finished in 0.00006 seconds (files took 42.06 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

@NickLaMuro
Copy link
Member Author

This has been merged. Closing.

@NickLaMuro NickLaMuro closed this Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant