Project

General

Profile

Bug #10234

Host/NicTest test failures

Added by Dominic Cleal over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Urgent
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Since #9391 was merged, two tests are failing on develop:

http://ci.theforeman.org/job/test_develop/1252/#showFailuresLink

HostTest::location or organizations are not enabled.test_0013_should import from external nodes output

<"2.3.4.12"> expected but was
<"3.3.4.12">. (test_0013_should import from external nodes output)
/var/lib/workspace/workspace/test_develop/database/mysql/ruby/1.9.3/test/unit/host_test.rb:632    
NicTest.test_0017_Alias subnet can only use static boot mode if it's managed

undefined method `organization' for nil:NilClass (NoMethodError)
/var/lib/workspace/workspace/test_develop/database/mysql/ruby/1.9.3/app/models/nic/base.rb:233:in `validate_host_taxonomy'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:649:in `_run__3611290445695528397__validate__4520985510384080569__callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activemodel-3.2.21/lib/active_model/validations.rb:228:in `run_validations!'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activemodel-3.2.21/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:458:in `_run__3611290445695528397__validation__4520985510384080569__callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activemodel-3.2.21/lib/active_model/validations/callbacks.rb:53:in `run_validations!'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activemodel-3.2.21/lib/active_model/validations.rb:195:in `valid?'
/usr/local/rvm/gems/ruby-1.9.3-p392@test_develop-3/gems/activerecord-3.2.21/lib/active_record/validations.rb:69:in `valid?'
/var/lib/workspace/workspace/test_develop/database/mysql/ruby/1.9.3/app/models/concerns/orchestration.rb:48:in `valid?'
/var/lib/workspace/workspace/test_develop/database/mysql/ruby/1.9.3/test/unit/nic_test.rb:150:in `block in <class:NicTest>'

Related issues

Related to Foreman - Bug #9391: subnet without organization/location and host using the subnet in org/loc => unable to set org/loc on the subnetClosed2015-02-15

Associated revisions

Revision 7678cac5 (diff)
Added by Daniel Lobato Garcia over 6 years ago

fixes #10234 - Fix NIC taxonomies validation tests

Some of the tests in #9391 changed the way subnets should work regarding
taxonomies and some test data, this commit fixes that so tests are green
once again.

Revision 1bda921d (diff)
Added by Daniel Lobato Garcia over 6 years ago

fixes #10234 - Fix NIC taxonomies validation tests

Some of the tests in #9391 changed the way subnets should work regarding
taxonomies and some test data, this commit fixes that so tests are green
once again.

(cherry picked from commit 7678cac5ac26eb8ff2a35dedfc4acc189c815203)

History

#1 Updated by Dominic Cleal over 6 years ago

  • Related to Bug #9391: subnet without organization/location and host using the subnet in org/loc => unable to set org/loc on the subnet added

#2 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/2316 added
  • Pull request deleted ()

#3 Updated by Daniel Lobato Garcia over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF