summaryrefslogtreecommitdiffstats
path: root/test/ral/type/filesources.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ral/type/filesources.rb')
-rwxr-xr-xtest/ral/type/filesources.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ral/type/filesources.rb b/test/ral/type/filesources.rb
index 7a08326ea..573bcb2ce 100755
--- a/test/ral/type/filesources.rb
+++ b/test/ral/type/filesources.rb
@@ -59,7 +59,7 @@ class TestFileSources < Test::Unit::TestCase
tofile = nil
trans = nil
- tofile = Puppet::Type.type(:file).create(
+ tofile = Puppet::Type.type(:file).new(
:path => todir,
:recurse => true,
:backup => false,
@@ -192,7 +192,7 @@ class TestFileSources < Test::Unit::TestCase
File.open(file1, "w") { |f| f.puts "yay" }
rootobj = nil
assert_nothing_raised {
- rootobj = Puppet::Type.type(:file).create(
+ rootobj = Puppet::Type.type(:file).new(
:name => basedir,
:recurse => true,
:check => %w{type owner},
@@ -264,7 +264,7 @@ class TestFileSources < Test::Unit::TestCase
sleep(1)
name = File.join(tmpdir(), "nosourcefile")
- file = Puppet::Type.type(:file).create(
+ file = Puppet::Type.type(:file).new(
:source => "puppet://localhost/noexist/file",
:name => name
)
@@ -291,7 +291,7 @@ class TestFileSources < Test::Unit::TestCase
# Now the files should be exactly the same, so we should not see attempts
# at copying
assert_nothing_raised {
- file = Puppet::Type.type(:file).create(
+ file = Puppet::Type.type(:file).new(
:path => to,
:source => from
)
@@ -317,7 +317,7 @@ class TestFileSources < Test::Unit::TestCase
file = nil
assert_nothing_raised {
- file = Puppet::Type.type(:file).create(
+ file = Puppet::Type.type(:file).new(
:name => to,
:source => files
)
@@ -343,7 +343,7 @@ class TestFileSources < Test::Unit::TestCase
file = nil
assert_nothing_raised {
- file = Puppet::Type.type(:file).create(
+ file = Puppet::Type.type(:file).new(
:name => dest,
:source => source
)
@@ -364,7 +364,7 @@ class TestFileSources < Test::Unit::TestCase
file = nil
assert_nothing_raised {
- file = Puppet::Type.type(:file).create(
+ file = Puppet::Type.type(:file).new(
:name => dest,
:ensure => "file",
:source => source
@@ -387,7 +387,7 @@ class TestFileSources < Test::Unit::TestCase
File.open(source, "w") { |f| f.puts "yay" }
File.symlink(source, link)
- file = Puppet::Type.type(:file).create(:name => dest, :source => link)
+ file = Puppet::Type.type(:file).new(:name => dest, :source => link)
catalog = mk_catalog(file)