[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Dominic Maraglia dmaraglia at gmail.com
Tue May 10 08:18:17 UTC 2011


The following commit has been merged in the experimental branch:
commit 95ed9aadad1e694614fd47a6d56888b26ded08ed
Author: Dominic Maraglia <dmaraglia at gmail.com>
Date:   Tue Apr 26 13:46:58 2011 -0700

    add test for ticket 7101

diff --git a/acceptance/tests/ticket_7101_template_compile.rb b/acceptance/tests/ticket_7101_template_compile.rb
new file mode 100644
index 0000000..d2ebecd
--- /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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list