Revision e60f0799
Added by Dominic Cleal about 9 years ago
test/unit/host_test.rb | ||
---|---|---|
assert(host.valid?)
|
||
end
|
||
|
||
test '#jumpstart? should return true for Solaris and SPARC hosts' do
|
||
host = FactoryGirl.create(:host,
|
||
:operatingsystem => FactoryGirl.create(:solaris),
|
||
:architecture => FactoryGirl.create(:architecture, :name => 'SPARC-T2'))
|
||
assert host.jumpstart?
|
||
end
|
||
|
||
private
|
||
|
||
def parse_json_fixture(relative_path)
|
Also available in: Unified diff
fixes #10020 - add next-server/filename attrs to provision NIC DHCP record
A host's DHCP record used to be constructed with PXE attributes in
Orchestration::DHCP, but moved to Nic::Managed during 43c4bd7. Nic::Managed
didn't add PXE attributes, so this commit adds these when provision? is set.
Nic::Bootable could add PXE attributes but was unused, so it is now deprecated.
PXE bootable interfaces should be of type Nic::Managed with provision: true.