diff options
author | Markus Roberts <Markus@reality.com> | 2010-08-04 09:08:30 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-08-04 17:49:11 -0700 |
commit | 47005aa20199455e8cea7679b0c40efbebe473e4 (patch) | |
tree | 12ead22ff1b515878feb111640b641b9a512a037 | |
parent | 6aac8f0185db1d153583230de726c30ce949fc78 (diff) | |
download | puppet-47005aa20199455e8cea7679b0c40efbebe473e4.tar.gz puppet-47005aa20199455e8cea7679b0c40efbebe473e4.tar.xz puppet-47005aa20199455e8cea7679b0c40efbebe473e4.zip |
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.
-rwxr-xr-x | test/certmgr/support.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/certmgr/support.rb b/test/certmgr/support.rb index 3138c94d7..060c458d8 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 |