diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-05-26 14:05:13 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-05-26 14:05:13 -0700 |
commit | 59e6be30f24dfb1011fbb242029b5ff61e19514c (patch) | |
tree | 0a1c23a95e4e2922d08a7dfdeaeaf39f968adbae /acceptance | |
parent | 996dc076e9ca61613f80fc79f0ffe667b14d1ebb (diff) | |
parent | 2ebd2d9eda3c556244cda1ae62da95965a92d79b (diff) | |
download | puppet-59e6be30f24dfb1011fbb242029b5ff61e19514c.tar.gz puppet-59e6be30f24dfb1011fbb242029b5ff61e19514c.tar.xz puppet-59e6be30f24dfb1011fbb242029b5ff61e19514c.zip |
Merge branch '2.7rc' into 2.7.x
Diffstat (limited to 'acceptance')
-rw-r--r-- | acceptance/tests/language/resource_refs_with_nested_arrays.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/acceptance/tests/language/resource_refs_with_nested_arrays.rb b/acceptance/tests/language/resource_refs_with_nested_arrays.rb new file mode 100644 index 000000000..7bc797885 --- /dev/null +++ b/acceptance/tests/language/resource_refs_with_nested_arrays.rb @@ -0,0 +1,27 @@ +test_name "#7681: Allow using array variables in resource references" + +test_manifest = <<MANIFEST +$exec_names = ["first", "second"] +exec { "first": + command => "echo the first command", + path => "/usr/bin:/bin", + logoutput => true, +} +exec { "second": + command => "echo the second command", + path => "/usr/bin:/bin", + logoutput => true, +} +exec { "third": + command => "echo the final command", + path => "/usr/bin:/bin", + logoutput => true, + require => Exec[$exec_names], +} +MANIFEST + +results = apply_manifest_on agents, test_manifest + +results.each do |result| + assert_match(/Exec\[third\].*the final command/, "#{result.stdout}") +end |