~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to acceptance/tests/jeff_append_to_array.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Ported from the acceptance test suite.
2
 
test_name "Jeff: Append to Array"
3
 
 
4
 
manifest = %q{
5
 
    class parent {
6
 
      $arr1 = [ "parent array element" ]
7
 
    }
8
 
    class parent::child inherits parent {
9
 
      $arr1 += [ "child array element" ]
10
 
      notify { $arr1: }
11
 
    }
12
 
    include parent::child
13
 
}
14
 
 
15
 
apply_manifest_on(agents, manifest) do
16
 
  stdout =~ /notice: parent array element/ or fail_test("parent missing")
17
 
  stdout =~ /notice: child array element/  or fail_test("child missing")
18
 
end
19