Sha256: 975aa9c82cafa70cc60865251c2362de98930dbe164535575ea8c9a803e4e24c

Contents?: true

Size: 827 Bytes

Versions: 19

Compression:

Stored size: 827 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../lib/puppettest'

require 'puppettest'
require 'puppettest/support/utils'
require 'puppet/network/xmlrpc/webrick_servlet'
require 'mocha'

class TestXMLRPCWEBrickServlet < Test::Unit::TestCase
  include PuppetTest
  def test_basics
    # Make sure we're doing things as our user info, rather than puppet/puppet
    setme
    set_mygroup
    Puppet[:user] = @me
    Puppet[:group] = @mygroup
    servlet = nil
    ca = Puppet::Network::Handler.ca.new

    assert_nothing_raised("Could not create servlet") do
      servlet = Puppet::Network::XMLRPC::WEBrickServlet.new([ca])
    end

    assert(servlet.get_service_hook, "service hook was not set up")


          assert(
        servlet.handler_loaded?(:puppetca),
        
      "Did not load handler")
  end
end


Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
puppet-2.6.18 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.17 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.16 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.15 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.14 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.13 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.12 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.11 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.10 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.9 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.8 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.7 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.6 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.5 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.4 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.3 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.2 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.1 test/network/xmlrpc/webrick_servlet.rb
puppet-2.6.0 test/network/xmlrpc/webrick_servlet.rb