[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc1-141-gcdb2b90
Markus Roberts
Markus at reality.com
Mon Aug 16 12:48:56 UTC 2010
The following commit has been merged in the upstream branch:
commit 47005aa20199455e8cea7679b0c40efbebe473e4
Author: Markus Roberts <Markus at reality.com>
Date: Wed Aug 4 09:08:30 2010 -0700
Maint -- tests need to respect RFC-952
We had a test that assumed hostnames would only consist of letters; by RFC-952
they are also allowed to contain digits and '-'s. The test failed on such
machines.
diff --git a/test/certmgr/support.rb b/test/certmgr/support.rb
index 3138c94..060c458 100755
--- a/test/certmgr/support.rb
+++ b/test/certmgr/support.rb
@@ -89,8 +89,9 @@ class TestCertSupport < Test::Unit::TestCase
should_path = Puppet[:hostprivkey]
dir, file = File.split(should_path)
- newfile = file.sub(/^([a-z.]+)\./) { $1.upcase + "."}
+ newfile = file.sub(/^([-a-z.0-9]+)\./) { $1.upcase + "."}
upper_path = File.join(dir, newfile)
+p upper_path
File.open(upper_path, "w") { |f| f.print key.to_s }
user = CertUser.new
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list