diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-04 23:56:35 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-04 23:56:35 -0600 |
commit | e96c5f84233b40915f7f7e993e1816f3de0d3ab2 (patch) | |
tree | b1b9e56efdfbf4c9a81cb56c9692b12da358a242 /test | |
parent | ed0c745c0f3b0f277968149ca25c78ce374bd2e4 (diff) | |
parent | 16df87c419655106b1585b1e443a2050270518e5 (diff) | |
download | puppet-e96c5f84233b40915f7f7e993e1816f3de0d3ab2.tar.gz puppet-e96c5f84233b40915f7f7e993e1816f3de0d3ab2.tar.xz puppet-e96c5f84233b40915f7f7e993e1816f3de0d3ab2.zip |
Merge commit 'turnbull/0.24.x' into 0.24.x
Diffstat (limited to 'test')
-rwxr-xr-x | test/ral/types/host.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ral/types/host.rb b/test/ral/types/host.rb index 088f93c1f..16ed20bd4 100755 --- a/test/ral/types/host.rb +++ b/test/ral/types/host.rb @@ -138,8 +138,17 @@ class TestHost < Test::Unit::TestCase host[:ensure] = :absent assert_events([:host_removed], host) end + + def test_invalid_ipaddress + host = mkhost() + + assert_raise(Puppet::Error) { + host[:ip] = "abc.def.ghi.jkl" + } end + end + def test_aliasisproperty assert_equal(:property, @hosttype.attrtype(:alias)) end |