Project

General

Profile

« Previous | Next » 

Revision dac16774

Added by Adam Ruzicka about 8 years ago

Fixes #8587 - Don't allow build for unmanaged hosts

View differences:

test/unit/orchestration/tftp_test.rb
def test_generate_pxe_template_for_build
if unattended?
h = FactoryGirl.create(:host, :build => true,
:operatingsystem => operatingsystems(:redhat),
:architecture => architectures(:x86_64)
)
h = FactoryGirl.build(:host, :managed, :build => true,
:operatingsystem => operatingsystems(:redhat),
:architecture => architectures(:x86_64))
Setting[:unattended_url] = "http://ahost.com:3000"
template = h.send(:generate_pxe_template).split("~")

Also available in: Unified diff