summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-18 14:24:08 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-18 14:24:08 -0800
commit263cc46ce03be7020dfc3e108db44616f5b66dce (patch)
tree8ef012e3eba2e4d032165b5c816e2b035756af03 /test
parent669741d11f30b051b74b4e118fe6509650fdeed3 (diff)
parent6e51d11c53012d5e5d5fa05cce26e13d97e223cb (diff)
downloadpuppet-263cc46ce03be7020dfc3e108db44616f5b66dce.tar.gz
puppet-263cc46ce03be7020dfc3e108db44616f5b66dce.tar.xz
puppet-263cc46ce03be7020dfc3e108db44616f5b66dce.zip
Merge branch 'ticket/next/5274' into next
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/providers/host/parsed.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/ral/providers/host/parsed.rb b/test/ral/providers/host/parsed.rb
index c2367d566..955edd5d3 100755
--- a/test/ral/providers/host/parsed.rb
+++ b/test/ral/providers/host/parsed.rb
@@ -67,7 +67,8 @@ class TestParsedHostProvider < Test::Unit::TestCase
# Make sure we convert both directlys correctly using a simple host.
def test_basic_isomorphism
- hash = {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host}}
+ hash = {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host},
+ :comment => ''}
str = nil
assert_nothing_raised do
@@ -105,11 +106,13 @@ class TestParsedHostProvider < Test::Unit::TestCase
[
{:record_type => :comment, :line => "# comment one"},
{:record_type => :blank, :line => ""},
- {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host}},
+ {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host},
+ :comment => ''},
{:record_type => :blank, :line => " "},
{:record_type => :comment, :line => "# another comment"},
- {:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57", :host_aliases => []}
+ {:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57", :host_aliases => [],
+ :comment => ''}
], instances)
newtext = nil