diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 05:19:52 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-23 05:19:52 +0000 |
| commit | 85b19c4815c4e605bcfa561298786ca3c1f68de0 (patch) | |
| tree | ca334fa7064b7f4de660359da06e432f006c1708 /test | |
| parent | 311aba94792c2984d2944c9ac99a4ff5d79db697 (diff) | |
Fixing #349. Doing some hackery so defined types can now (again) be used as dependencies.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1966 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rw-r--r-- | test/data/snippets/componentrequire.pp | 8 | ||||
| -rwxr-xr-x | test/language/snippets.rb | 7 | ||||
| -rwxr-xr-x | test/other/relationships.rb | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/test/data/snippets/componentrequire.pp b/test/data/snippets/componentrequire.pp new file mode 100644 index 000000000..a61d2050c --- /dev/null +++ b/test/data/snippets/componentrequire.pp @@ -0,0 +1,8 @@ +define testfile($mode) { + file { $name: mode => $mode, ensure => present } +} + +testfile { "/tmp/testing_component_requires2": mode => 755 } + +file { "/tmp/testing_component_requires1": mode => 755, ensure => present, + require => Testfile["/tmp/testing_component_requires2"] } diff --git a/test/language/snippets.rb b/test/language/snippets.rb index ccf8a3576..c0175301d 100755 --- a/test/language/snippets.rb +++ b/test/language/snippets.rb @@ -439,6 +439,13 @@ class TestSnippets < Test::Unit::TestCase "Did not collect file #{num}") end end + + def snippet_componentrequire + %w{1 2}.each do |num| + assert(FileTest.exists?("/tmp/testing_component_requires#{num}"), + "#{num} does not exist") + end + end def disabled_snippet_dirchmod dirs = %w{a b}.collect { |letter| diff --git a/test/other/relationships.rb b/test/other/relationships.rb index 7b321d821..45f6efc7a 100755 --- a/test/other/relationships.rb +++ b/test/other/relationships.rb @@ -205,7 +205,6 @@ class TestRelationships < Test::Unit::TestCase file2[:notify] = file1 assert(file1.requires?(file2), "requires? failed to catch :notify relationship") end - end # $Id$ |
