Project

General

Profile

Bug #27088

Test fail locally: Error details for private method `select' called for nil:NilClass:

Added by Lukas Zapletal about 3 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

I am seeing this test to fail locally:

/home/lzap/work/smart-proxy/test/bmc/integration_test.rb:19:in `test_features'
/home/lzap/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse'
/home/lzap/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse'
Error: test_features(BmcApiFeaturesTest): JSON::ParserError: 785: unexpected token at 'private method `select' called for nil:NilClass'

In logs I can see

2019-06-20T14:36:24  [E] private method `select' called for nil:NilClass
2019-06-20T14:36:24  [W] Error details for private method `select' called for nil:NilClass: <NoMethodError>: private method `select' called for nil:NilClass
/home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:31:in `process_capabilities'
/home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:19:in `block (2 levels) in <class:RootV2Api>'
/home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `each'
/home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `inject'
/home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `block in <class:RootV2Api>'

Associated revisions

Revision c0980f97 (diff)
Added by Lukas Zapletal 4 months ago

Fixes #27088 - Handle capabilities for uninitialized plugins

Signed-off-by: Lukas Zapletal <>

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/661 added

#2 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.3.0 added

#3 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF