blob: 4d9ccb060f60cea341550b8f3805a663aa8a41a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
test_name "the path statement should work to locate commands"
file = "/tmp/touched-should-set-path-#{Time.new.to_i}"
step "clean up the system for the test"
on agents, "rm -f #{file}"
step "invoke the exec resource with a path set"
on(agents, puppet_resource('exec', 'test',
"command='touch #{file}'", 'path="/bin:/usr/bin"'))
step "verify that the files were created"
on agents, "test -f #{file}"
step "clean up the system after testing"
on agents, "rm -f #{file}"
|