From 82ebe28b7473ca08b00ab78146ee616a1ee3758f Mon Sep 17 00:00:00 2001 From: Moses Mendoza Date: Thu, 30 Aug 2012 14:28:58 -0700 Subject: [PATCH] Remove version check regex from puppet This commit removes the version test method in default.rb, which is the sudo-equivalent of e30d6ef in the 3.x branch. AFAICT this method is not called anywhere in puppet, and since we've started using RC versions it won't work as-is if called. Signed-off-by: Moses Mendoza --- test/puppet/defaults.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/puppet/defaults.rb b/test/puppet/defaults.rb index 18c74bf49..73197ef5d 100755 --- a/test/puppet/defaults.rb +++ b/test/puppet/defaults.rb @@ -13,10 +13,6 @@ class TestPuppetDefaults < Test::Unit::TestCase @@normals = %w{puppetport masterport server} @@booleans = %w{noop} - def testVersion - assert( Puppet.version =~ /^[0-9]+(\.[0-9]+)*/, "got invalid version number #{Puppet.version}") - end - def testStringOrParam [@@dirs,@@files,@@booleans].flatten.each { |param| assert_nothing_raised { Puppet[param] }