diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-16 06:06:10 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-16 06:06:10 +0000 |
| commit | 328e5765d93e8f70c241d836ae95d1158602f227 (patch) | |
| tree | 106aa32f55a867ad38caefb2328ac7d4892f8e2c /test/lib | |
| parent | 69d4bfe13a579da05a1a02be3880b16bd2a2f1a0 (diff) | |
| download | puppet-328e5765d93e8f70c241d836ae95d1158602f227.tar.gz puppet-328e5765d93e8f70c241d836ae95d1158602f227.tar.xz puppet-328e5765d93e8f70c241d836ae95d1158602f227.zip | |
Revamping collections to get what is hopefully more reasonable behaviour when they are used in combination with defined resource types. You should now be able to combine them in just about any way and get "correct" behaviour, which in this case means that you can have virtual definitions or definitions wrapping virtual resources and the resources will still all get realized.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2198 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/parsertesting.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/puppettest/parsertesting.rb b/test/lib/puppettest/parsertesting.rb index f71ba6b82..0cd308181 100644 --- a/test/lib/puppettest/parsertesting.rb +++ b/test/lib/puppettest/parsertesting.rb @@ -97,6 +97,12 @@ module PuppetTest::ParserTesting } end + def virt_resourcedef(*args) + res = resourcedef(*args) + res.virtual = true + res + end + def resourceoverride(type, title, params) assert_nothing_raised("Could not create %s %s" % [type, name]) { return AST::ResourceOverride.new( |
