summaryrefslogtreecommitdiffstats
path: root/test/util
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-01-19 04:17:33 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-01-19 04:17:33 +1100
commitc751058722e10c6900f99f095d3be6e30c186a3e (patch)
tree36d58ec6a8ec6851b826c8ca511739e2a39cf5ef /test/util
parent31e08507cbe8444528aaaac2778374eea040709c (diff)
downloadpuppet-c751058722e10c6900f99f095d3be6e30c186a3e.tar.gz
puppet-c751058722e10c6900f99f095d3be6e30c186a3e.tar.xz
puppet-c751058722e10c6900f99f095d3be6e30c186a3e.zip
Removed remaining elements of old_parse - closing Ticket #990
Diffstat (limited to 'test/util')
-rwxr-xr-xtest/util/settings.rb63
1 files changed, 0 insertions, 63 deletions
diff --git a/test/util/settings.rb b/test/util/settings.rb
index cf5dca76d..de6fff946 100755
--- a/test/util/settings.rb
+++ b/test/util/settings.rb
@@ -256,69 +256,6 @@ yay = /a/path
end
end
- def test_old_parse
- text = %{
-one = this is a test
-two = another test
-owner = root
-group = root
-yay = /a/path
-
-[section1]
- attr = value
- owner = puppet
- group = puppet
- attrdir = /some/dir
- attr3 = $attrdir/other
- }
-
- file = tempfile()
- File.open(file, "w") { |f| f.puts text }
-
- assert_nothing_raised {
- @config.setdefaults("puppet",
- :one => ["a", "one"],
- :two => ["a", "two"],
- :yay => ["/default/path", "boo"],
- :mkusers => [true, "uh, yeah"]
- )
- }
-
- assert_nothing_raised {
- @config.setdefaults("section1",
- :attr => ["a", "one"],
- :attrdir => ["/another/dir", "two"],
- :attr3 => ["$attrdir/maybe", "boo"]
- )
- }
-
- assert_nothing_raised {
- @config.old_parse(file)
- }
-
- assert_equal("value", @config[:attr])
- assert_equal("/some/dir", @config[:attrdir])
- assert_equal(:directory, @config.element(:attrdir).type)
- assert_equal("/some/dir/other", @config[:attr3])
-
- elem = nil
- assert_nothing_raised {
- elem = @config.element(:attr3)
- }
-
- assert(elem)
- assert_equal("puppet", elem.owner)
-
- config = nil
- assert_nothing_raised {
- config = @config.to_config
- }
-
- assert_nothing_raised("Could not create transportable config") {
- @config.to_transportable
- }
- end
-
def test_parse
result = {
:main => {:main => "main", :bad => "invalid", :cliparam => "reset"},