Sha256: 3c38126d79fe13b0a49cbf17ef572f9577221332bb6432a3310fc1dedcd7b92b

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift("../../lib") if __FILE__ =~ /\.rb$/

require 'puppettest'
require 'puppet/network/xmlrpc/server'
require 'mocha'

class TestXMLRPCServer < Test::Unit::TestCase
    def setup
        super
        assert_nothing_raised do
            @server = Puppet::Network::XMLRPCServer.new
        end
    end

    def test_initialize
        assert(@server.get_service_hook, "no service hook defined")

        assert_nothing_raised("Did not init @loadedhandlers") do
            assert(! @server.handler_loaded?(:puppetca),
                "server thinks handlers are loaded")
        end
    end
end

# $Id: server.rb 2259 2007-03-06 19:03:05Z luke $

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-0.22.4 test/network/xmlrpc/server.rb
puppet-0.23.0 test/network/xmlrpc/server.rb
puppet-0.23.1 test/network/xmlrpc/server.rb
puppet-0.23.2 test/network/xmlrpc/server.rb