diff options
| author | Max Martin <max@puppetlabs.com> | 2011-03-17 13:42:46 -0700 |
|---|---|---|
| committer | Max Martin <max@puppetlabs.com> | 2011-03-17 13:42:46 -0700 |
| commit | 462a56060f0fffc7b8577f252000195e9384fb7a (patch) | |
| tree | c3447659483c2e286df255053655b00a46af4070 /spec/integration | |
| parent | 17f673dd6fee08309970f8ff721855cf1644b45f (diff) | |
| parent | ec1aa192825f17afbe4dc12be1e0f2d644d74155 (diff) | |
| download | puppet-462a56060f0fffc7b8577f252000195e9384fb7a.tar.gz puppet-462a56060f0fffc7b8577f252000195e9384fb7a.tar.xz puppet-462a56060f0fffc7b8577f252000195e9384fb7a.zip | |
Merge branch 'feature/2.6.next/4884-an-exec-provider-that-executes-unfiltered-bash-code' into 2.6.next
* feature/2.6.next/4884-an-exec-provider-that-executes-unfiltered-bash-code:
(#4884) Revise new exec tests, add a few more
(#4884) Add an shell provider for execs
(#4884) Fix Test::Unit exec tests
(#4884) Break the exec type out to have a posix provider
(#4884) Add consistent path validation and behavior
(#4884) Add expand_path to requiring the spec_helper
(#4884) Autorequire shared behaviors and method to silence warnings
(#4884) Fix whitespace
(#4884) Get rid of open3 require since it wasn't being used
Diffstat (limited to 'spec/integration')
| -rwxr-xr-x | spec/integration/transaction_spec.rb | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/spec/integration/transaction_spec.rb b/spec/integration/transaction_spec.rb index d5478d7a7..2c12b3d5f 100755 --- a/spec/integration/transaction_spec.rb +++ b/spec/integration/transaction_spec.rb @@ -107,29 +107,23 @@ describe Puppet::Transaction do file1 = tmpfile("file1") file2 = tmpfile("file2") - file = Puppet::Type.type(:file).new( - - :path => path, - + file = Puppet::Type.type(:file).new( + :path => path, :ensure => "file" ) - exec1 = Puppet::Type.type(:exec).new( - - :path => ENV["PATH"], + exec1 = Puppet::Type.type(:exec).new( + :path => ENV["PATH"], :command => "touch #{file1}", :refreshonly => true, - - :subscribe => Puppet::Resource.new(:file, path) + :subscribe => Puppet::Resource.new(:file, path) ) - exec2 = Puppet::Type.type(:exec).new( - - :path => ENV["PATH"], - :command => "touch #{file2}", + exec2 = Puppet::Type.type(:exec).new( + :path => ENV["PATH"], + :command => "touch #{file2}", :refreshonly => true, - - :subscribe => Puppet::Resource.new(:file, path) + :subscribe => Puppet::Resource.new(:file, path) ) catalog = mk_catalog(file, exec1, exec2) |
