diff options
author | Luke Kanies <luke@madstop.com> | 2007-12-18 16:47:36 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-12-18 16:47:36 -0600 |
commit | 92b0ebc7b74a29b5b875fc104a3681a264d49f03 (patch) | |
tree | 2badd88f2b14f1669613a924bc79184e3c2359f3 /test/language | |
parent | 1ada24d4d4aa9ccd9a37176aa3d105ec9874d208 (diff) | |
download | puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.tar.gz puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.tar.xz puppet-92b0ebc7b74a29b5b875fc104a3681a264d49f03.zip |
Fixing #967 -- relationships now work when running 0.23.x clients
against 0.24.0 servers.
Diffstat (limited to 'test/language')
-rwxr-xr-x | test/language/resource.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/language/resource.rb b/test/language/resource.rb index 9c030d34a..84a30b029 100755 --- a/test/language/resource.rb +++ b/test/language/resource.rb @@ -239,9 +239,9 @@ class TestResource < PuppetTest::TestCase assert_equal("nobody", obj["owner"], "Single-value string was not passed correctly") assert_equal(%w{you me}, obj["group"], "Array of strings was not passed correctly") assert_equal("svn", obj["ignore"], "Array with single string was not turned into single value") - assert_equal(["File", refs[0].title], obj["require"], "Resource reference was not passed correctly") - assert_equal([["File", refs[1].title], ["File", refs[2].title]], obj["subscribe"], "Array of resource references was not passed correctly") - assert_equal(["File", refs[3].title], obj["notify"], "Array with single resource reference was not turned into single value") + assert_equal(["file", refs[0].title], obj["require"], "Resource reference was not passed correctly") + assert_equal([["file", refs[1].title], ["file", refs[2].title]], obj["subscribe"], "Array of resource references was not passed correctly") + assert_equal(["file", refs[3].title], obj["notify"], "Array with single resource reference was not turned into single value") end # FIXME This isn't a great test, but I need to move on. @@ -332,7 +332,7 @@ class TestResource < PuppetTest::TestCase end assert_instance_of(Array, trans["require"]) - assert_equal(["File", "/tmp/ref1"], trans["require"]) + assert_equal(["file", "/tmp/ref1"], trans["require"]) # Now try it when using an array of references. two = Parser::Resource::Reference.new(:type => "file", :title => "/tmp/ref2") @@ -348,7 +348,7 @@ class TestResource < PuppetTest::TestCase assert_instance_of(Array, trans["require"][0]) trans["require"].each do |val| assert_instance_of(Array, val) - assert_equal("File", val[0]) + assert_equal("file", val[0]) assert(val[1] =~ /\/tmp\/ref[0-9]/, "Was %s instead of the file name" % val[1]) end |