summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/resource/file/should_create_directory.rb
blob: 37ad9dbf8212d1bebd9d4ca09e74be7d43917744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
test_name "should create directory"

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

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

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

step "verify the directory was created"
on agents, "test -d #{target}"

step "clean up after the test run"
on agents, "rm -rf #{target}"