Project

General

Profile

Actions

Bug #16512

closed

Settings-related functional test failures

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Since #16491, 18 tests have started failing:

  1) Error:
SettingsControllerTest#test_0005_settings shouldnt include ones about locations when locations are disabled:
ActionView::Template::Error: undefined method `each' for nil:NilClass
    app/views/settings/index.html.erb:4:in `_app_views_settings_index_html_erb__462412887402587618_117671740'
    app/controllers/concerns/application_shared.rb:14:in `set_timezone'
    app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
    test/functional/settings_controller_test.rb:49:in `block in <class:SettingsControllerTest>'
  • Api::V1::SettingsControllerTest.test_0004_should parse string values
  • Api::V1::SettingsControllerTest.test_0002_should show individual record
  • Api::V1::SettingsControllerTest.test_0003_should update setting
  • Api::V2::SettingsControllerTest.test_0005_settings shouldnt include ones about organizations when organizations are disabled
  • Api::V2::SettingsControllerTest.test_0003_should not update setting
  • Api::V2::SettingsControllerTest.test_0006_settings shouldnt include ones about locations when locations are disabled
  • Api::V2::SettingsControllerTest.test_0001_should get index
  • Api::V2::SettingsControllerTest.test_0004_should parse string values
  • Api::V2::SettingsControllerTest.test_0002_should show individual record
  • Api::V2::UsersControllerTest.test_0005_shows default taxonomies on show response
  • Api::V2::UsersControllerTest.test_0002_should handle taxonomy with wrong id
  • LocationsControllerTest.test_0008_should display a warning if current location has been deleted
  • OrganizationsControllerTest.test_0009_should display a warning if current organization has been deleted
  • SettingsControllerTest.test_index
  • SettingsControllerTest.test_0002_does not render an old sti type setting
  • SettingsControllerTest.test_0005_settings shouldnt include ones about locations when locations are disabled
  • SettingsControllerTest.test_0004_settings shouldnt include ones about organizations when organizations are disabled
  • SettingsControllerTest.test_0001_can render a new sti type setting

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16491: upgrade rubocop to version 0.42ClosedTomer Brisker09/08/2016Actions
Actions

Also available in: Atom PDF