Project

General

Profile

Actions

Bug #19741

closed

Undefined method 'split' for nil on several tests

Added by Daniel Lobato Garcia over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
Fixed in Releases:
Found in Releases:

Description

11 tests have been failing when the Jenkins job that tests Foreman + Katello triggers:


    Katello::ActivationKeyTest.test_0006_key can be copied
    Katello::Api::V2::ContentViewsControllerTest.test_available_puppet_modules_with_use_latest
    Katello::CapsuleContentTest::task related queries.test_0004_last sync time is nil when there's no successful sync
    Katello::ContentViewPuppetModuleTest.test_computed_version_nil
    Katello::ContentViewTest.test_copy
    Katello::GlueCandlepinOwnerTestSLA.test_update_candlepin_owner_service_level
    Katello::HostgroupExtensionsTest.test_inherited_content_view_with_ancestry_nill
    Katello::HostgroupExtensionsTest.test_inherited_lifecycle_environment_with_ancestry_nil
    Katello::RepositoryInstanceTest.test_capsule_download_policy
    Katello::RepositoryInstanceTest.test_nil_url_url
    Katello::SyncPlanTest.test_sync_date_if_bad_interval

All of them fail with the same error, which is surprising given that the lines they fail at have no 'split' or anything similar (nor they call the same method). Running tests individually or all Katello tests via rake test:katello does not reproduce the issue. I think it's only happening with 'bundle exec rake jenkins:katello' (although that just runs 'test:katello'). Removing the db and running tests without db doesn't change anything.

Actions

Also available in: Atom PDF