Fixes #11089 - Adapt tests to Rails 4
This commit contains all changes to tests in branchhttps://github.com/theforeman/foreman/pull/2055 that I found to beretrocompatible with Rails 3. The more of these we can get in, the lesscode we will have to review for Rails 4, and the more relevant it will...
fixes #10646 - disable NIC subnet taxonomy checks when feature's disabled
refs #10168 - fix test that created a duplicate primary interface
Subtle interaction between 4d5b979 and a5dc3e2, resulting in the testthat tried to add an interface to an unmanaged host duplicating the onethat was automatically added.
fixes #10234 - Fix NIC taxonomies validation tests
Some of the tests in #9391 changed the way subnets should work regardingtaxonomies and some test data, this commit fixes that so tests are greenonce again.
Fixes #9391 - Added validation code to NIC, so it validates that host's location/org is compatible with the one set on NIC's subnet
Fixes #9434 - managed alias accepts only static boot mode subnet
Fixes #9631 - adds missing bond test
fixes #8358 - validate domain on host update
Fixes #9480 - multiple NICs integration with compute profiles
From users point of view:- interfaces setup in compute profiles is back- interface related compute attrs get merged into host NICs upon compute profile selection- NIC overview table displays details in the column "Type"...
Fixes #9495 - Require identifier for managed bonds
Fixes #9497 - Require MAC for managed BMC
Fixes #9429 - identifier is required for Alias and VLAN
Refs #3809 - Remove cops for empty lines
Fixes #7456 - Extract primary interface from host
All host must have at least one primary interface and one provision (can...
Refs #3809 - Remove useless assignments
Fixes #8005 - Convert allowed NIC types to strings
- allowed NIC type classes need to be registered now- api for interfaces use lowercase human readable values for defining types- fixed output of api's create action to the standard format
Fixes #7733 - Remove hosts.yml fixtures and use FactoryGirl instead
Refs #3809 - Fix a few rubocop TODOs
Fixes #6444 - add support for virtual NICs
Extend additional interface details refs #2240
NIC facts parsing change and we create interfaces in Foreman accordingto facts we recieve.
Subclasses does not define their own attributes and serialize them toattrs hash. All BMC attributes are extracted to separate columns so it's...
Fixes #6518 - look up the BMC proxy via any subnet proxies, if present
fixes #3272 - allow 'admin' account to be removed and replaced
fixes #6374 - NIC hostname now blank when domain is present, but no hostname is given
fixes #5915 - Add support for Infiniband 64-bit MAC addresses
fixes #4599 - DNS and DHCP records for BMC and managed interfaces not using FQDN
fixes #3697, #3701 - more comprehensive field validations
fixes #2378 - added Minitest and other code cleanups
fixes #1814 - converts sp_* attributes into a BMC interface class
this patch also includes the following