summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-02-05 13:52:12 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-02-05 13:52:12 +1100
commit16df87c419655106b1585b1e443a2050270518e5 (patch)
tree7775be1ecbbf378e4848b793a37bdfbe4cd13ce4 /test
parentf33c4061ebdf1908176eabd6b524a948de1fbd38 (diff)
downloadpuppet-16df87c419655106b1585b1e443a2050270518e5.tar.gz
puppet-16df87c419655106b1585b1e443a2050270518e5.tar.xz
puppet-16df87c419655106b1585b1e443a2050270518e5.zip
Updated fix for ticket #151 and added a test
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/types/host.rb9
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