diff options
| author | Luke Kanies <luke@madstop.com> | 2005-08-09 22:23:30 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-08-09 22:23:30 +0000 |
| commit | e2e247428faa15c299a5dc7bc802afa4a2dbc74a (patch) | |
| tree | da1dd42f7e06946c71a08c0c12bda0067e053161 | |
| parent | 0f7d185fb1f05e6674ed12ad5f0dabc1ad3f34db (diff) | |
| download | puppet-e2e247428faa15c299a5dc7bc802afa4a2dbc74a.tar.gz puppet-e2e247428faa15c299a5dc7bc802afa4a2dbc74a.tar.xz puppet-e2e247428faa15c299a5dc7bc802afa4a2dbc74a.zip | |
removing obsolete files
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@522 980ebf18-57e1-0310-9a29-db15c13687c0
| -rw-r--r-- | test/other/tc_fact.rb | 35 | ||||
| -rw-r--r-- | test/other/tc_function.rb | 29 |
2 files changed, 0 insertions, 64 deletions
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 |
