summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/resource/file/should_remove_file.rb
blob: aadb8297139b5f8c859cb6ff78791cc980983b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test_name "should remove file"

target = "/tmp/test-#{Time.new.to_i}"

step "clean up the system before we begin"
on agents, "rm -rf #{target} && touch #{target}"

step "verify we can remove a file"
on(agents, puppet_resource("file", target, 'ensure=absent'))

step "verify that the file is gone"
on agents, "test -e #{target}", :acceptable_exit_codes => [1]