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