Project

General

Profile

« Previous | Next » 

Revision 9bb4e25f

Added by Ohad Levy about 12 years ago

  • ID 9bb4e25f77db6771096a83185dc6ce41c8be9e7f

fixes #1600 - records are deleted even though host is not Managed

View differences:

test/unit/host_test.rb
test "should not save if IP is not in the right subnet" do
if unattended?
host = Host.create :name => "myfullhost", :mac => "aabbecddeeff", :ip => "123.05.02.03",
:domain => domains(:mydomain), :operatingsystem => Operatingsystem.first, :subnet => subnets(:one),
:domain => domains(:mydomain), :operatingsystem => Operatingsystem.first, :subnet => subnets(:one), :managed => true,
:architecture => Architecture.first, :environment => Environment.first, :ptable => Ptable.first, :puppet_proxy => smart_proxies(:puppetmaster)
assert !host.valid?
end

Also available in: Unified diff