summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Maraglia <dmaraglia@gmail.com>2011-05-05 09:53:24 -0700
committerDominic Maraglia <dmaraglia@gmail.com>2011-05-05 09:53:24 -0700
commit8f907f21c05295a4e04a55e2d0b287454eea4773 (patch)
treeb1e994db508801a6ce55dceacb8f64b123044ee8
parent97e8ef32ff174a795a73d045ef1df99d8de51356 (diff)
downloadpuppet-8f907f21c05295a4e04a55e2d0b287454eea4773.tar.gz
puppet-8f907f21c05295a4e04a55e2d0b287454eea4773.tar.xz
puppet-8f907f21c05295a4e04a55e2d0b287454eea4773.zip
adding test for ticket 7139
-rw-r--r--acceptance/tests/ticket_7139_puppet_resource_file_qualified_paths.rm11
1 files changed, 11 insertions, 0 deletions
diff --git a/acceptance/tests/ticket_7139_puppet_resource_file_qualified_paths.rm b/acceptance/tests/ticket_7139_puppet_resource_file_qualified_paths.rm
new file mode 100644
index 000000000..f773ba17c
--- /dev/null
+++ b/acceptance/tests/ticket_7139_puppet_resource_file_qualified_paths.rm
@@ -0,0 +1,11 @@
+test_name "#7139: Puppet resource file failes on path with leading '/'"
+
+step "Agents: create valid, invalid formatted manifests"
+create_remote_file(agents, '/tmp/ticket-7139', %w{foo bar contents} )
+
+step "Run puppet file resource on /tmp/ticket-7139"
+agents.each do |host|
+ on(host, "puppet resource file /tmp/ticket-7139") do
+ assert_match(/file \{ \'\/tmp\/ticket-7139\':/, stdout, "puppet resource file failed on #{host}")
+ end
+end