diff options
| author | Dominic Maraglia <dmaraglia@gmail.com> | 2011-04-26 13:52:30 -0700 |
|---|---|---|
| committer | Dominic Maraglia <dmaraglia@gmail.com> | 2011-04-26 13:52:30 -0700 |
| commit | c1edcb2c3fddc2ffd6a8addf151db815b3bd43a8 (patch) | |
| tree | ba56bf2ed3e14075b744d93560530a1e664fb0c4 | |
| parent | db26326364103ed2f7fbd56d246d700cc2d9a0f9 (diff) | |
| download | puppet-c1edcb2c3fddc2ffd6a8addf151db815b3bd43a8.tar.gz puppet-c1edcb2c3fddc2ffd6a8addf151db815b3bd43a8.tar.xz puppet-c1edcb2c3fddc2ffd6a8addf151db815b3bd43a8.zip | |
add test for ticket 7101
| -rw-r--r-- | acceptance/tests/ticket_7101_template_compile.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/acceptance/tests/ticket_7101_template_compile.rb b/acceptance/tests/ticket_7101_template_compile.rb new file mode 100644 index 000000000..d2ebecd13 --- /dev/null +++ b/acceptance/tests/ticket_7101_template_compile.rb @@ -0,0 +1,25 @@ +test_name "#7101: template compile" + +manifest = %q{ +$bar = 'test 7101' +file { '/tmp/file_7101.erb': + content => template('/tmp/template_7101.erb') +} +} + + +step "Agents: Create template file" +agents.each do |host| + create_remote_file(host, '/tmp/template_7101.erb', %w{<%= bar %>} ) +end + +step "Run manifest referencing template file" +apply_manifest_on(agents, manifest) + + +step "Agents: Verify file is created with correct contents " +agents.each do |host| + on(host, "cat /tmp/file_7101.erb") do + assert_match(/test 7101/, stdout, "File /tmp/file_7101.erb not created with correct contents on #{host}" ) + end +end |
