From e2e247428faa15c299a5dc7bc802afa4a2dbc74a Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 9 Aug 2005 22:23:30 +0000 Subject: removing obsolete files git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@522 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/other/tc_fact.rb | 35 ----------------------------------- test/other/tc_function.rb | 29 ----------------------------- 2 files changed, 64 deletions(-) delete mode 100644 test/other/tc_fact.rb delete mode 100644 test/other/tc_function.rb diff --git a/test/other/tc_fact.rb b/test/other/tc_fact.rb deleted file mode 100644 index 34f053dc0..000000000 --- a/test/other/tc_fact.rb +++ /dev/null @@ -1,35 +0,0 @@ -if __FILE__ == $0 - $:.unshift '..' - $:.unshift '../../lib' - $puppetbase = "../../../../language/trunk/" -end - -require 'puppet/fact' -require 'facter' -require 'test/unit' - -# $Id$ - -class TestFacts < Test::Unit::TestCase - def test_newfact - Puppet[:debug] = true if __FILE__ == $0 - fact = nil - assert_nothing_raised() { - fact = Puppet::Fact.new( - :name => "funtest", - :code => "echo funtest", - :interpreter => "/bin/sh" - ) - } - assert_equal( - "funtest", - Puppet::Fact["funtest"] - ) - end - - def test_os - assert_equal(Facter["operatingsystem"].value, - Puppet::Fact["operatingsystem"] - ) - end -end diff --git a/test/other/tc_function.rb b/test/other/tc_function.rb deleted file mode 100644 index e35abddd6..000000000 --- a/test/other/tc_function.rb +++ /dev/null @@ -1,29 +0,0 @@ -if __FILE__ == $0 - $:.unshift '..' - $:.unshift '../../lib' - $puppetbase = "../../../../language/trunk" -end - -require 'puppet/function' -require 'puppet/fact' -require 'test/unit' - -# $Id$ - -class TestFunctions < Test::Unit::TestCase - def test_retrieve - vars = %w{operatingsystem operatingsystemrelease} - - vars.each { |var| - value = nil - assert_nothing_raised() { - value = Puppet::Function["fact"].call(var) - } - - assert_equal( - Puppet::Fact[var], - value - ) - } - end -end -- cgit