~liff/puppet/ubuntu

« back to all changes in this revision

Viewing changes to acceptance/tests/puppet_apply_a_file_should_create_a_file_and_report_the_md5.rb

  • Committer: Olli Helenius
  • Date: 2011-10-03 08:46:09 UTC
  • mfrom: (3866.1.7)
  • Revision ID: olli.helenius@onesto.fi-20111003084609-3chc7lo31gl3u5cf
[Micah Anderson]
* Fix SSH authorized keys symlink attack (CVE-2011-3870)
* Fix K5login content attack (CVE-2011-3869)
* Fix predictable temporary file using RAL (CVE-2011-3871)
* Fix file indirectory injection
[Stig Sandbeck Mathisen]
* Update package conflicts for puppet-el and vim-puppet (Closes: #643657)

* Resist directory traversal attacks (CVE-2011-3848)
* New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
step "clean up #{file} for testing"
7
7
on agents, "rm -f #{file}"
8
8
 
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'"
 
9
step "Run the manifest and verify MD5 was printed"
 
10
agents.each do |host|
 
11
  apply_manifest_on(host, manifest) do
 
12
    assert_match(/defined content as '{md5}098f6bcd4621d373cade4e832627b4f6'/, stdout, "#{host}: didn't find the content MD5 on output")
 
13
  end
13
14
end
14
15
 
15
16
step "clean up #{file} after testing"