diff options
Diffstat (limited to 'test/server/fileserver.rb')
-rwxr-xr-x | test/server/fileserver.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/server/fileserver.rb b/test/server/fileserver.rb index 6712c30b7..f6037f17d 100755 --- a/test/server/fileserver.rb +++ b/test/server/fileserver.rb @@ -226,7 +226,7 @@ class TestFileServer < Test::Unit::TestCase # verify we can mount /, which is what local file servers will # normally do - def test_mountroot + def test_zmountroot server = nil assert_nothing_raised { server = Puppet::Server::FileServer.new( @@ -247,6 +247,11 @@ class TestFileServer < Test::Unit::TestCase } assert(list =~ pattern) + assert_nothing_raised { + list = server.list("/root" + testdir, true, false) + } + + assert(list =~ pattern) end # verify that we're correctly recursing the right number of levels @@ -688,6 +693,17 @@ class TestFileServer < Test::Unit::TestCase list = nil end + # Verify that we get converted to the right kind of string + def test_mountstring + mount = nil + name = "yaytest" + path = tmpdir() + assert_nothing_raised { + mount = Puppet::Server::FileServer::Mount.new(name, path) + } + + assert_equal(name + ":" + path, mount.to_s) + end end # $Id$ |