1
test_name "#7681: Allow using array variables in resource references"
3
test_manifest = <<MANIFEST
4
$exec_names = ["first", "second"]
6
command => "echo the first command",
7
path => "/usr/bin:/bin",
11
command => "echo the second command",
12
path => "/usr/bin:/bin",
16
command => "echo the final command",
17
path => "/usr/bin:/bin",
19
require => Exec[$exec_names],
23
results = apply_manifest_on agents, test_manifest
25
results.each do |result|
26
assert_match(/Exec\[third\].*the final command/, "#{result.stdout}")