summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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