1
test_name "puppet apply should create a file and report an MD5"
3
file = "/tmp/hello.world.#{Time.new.to_i}.txt"
4
manifest = "file{'#{file}': content => 'test'}"
6
step "clean up #{file} for testing"
7
on agents, "rm -f #{file}"
9
step "run the manifest and verify MD5 was printed"
10
apply_manifest_on(agents, manifest) do
11
fail_test "didn't find the content MD5 on output" unless
12
stdout.include? "defined content as '{md5}098f6bcd4621d373cade4e832627b4f6'"
15
step "clean up #{file} after testing"
16
on agents, "rm -f #{file}"