Project

General

Profile

« Previous | Next » 

Revision 5081efd9

Added by Shimon Shtein almost 9 years ago

Fixes #11255 - Fixed inheritance checks for explicit input on host clone

View differences:

test/functional/hosts_controller_test.rb
refute assigns(:host).mac
end
def test_clone_with_hostgroup
ComputeResource.any_instance.stubs(:vm_compute_attributes_for).returns({})
host = FactoryGirl.create(:host, :with_hostgroup)
get :clone, {:id => host.id}, set_session_user
assert assigns(:clone_host)
assert_template 'clone'
assert_response :success
end
def setup_user(operation, type = 'hosts', filter = nil)
super
end

Also available in: Unified diff