Sha256: 2180aac0f87b7b2cf9c76909f3c155b383df67ae8eef3129f1725467b2cfed8e
Contents?: true
Size: 874 Bytes
Versions: 4
Compression:
Stored size: 874 Bytes
Contents
#!/usr/bin/env ruby $:.unshift("../lib") if __FILE__ =~ /\.rb$/ require 'puppettest' require 'puppet/network/rights' class TestRights < Test::Unit::TestCase include PuppetTest def setup super @store = Puppet::Network::Rights.new end def test_rights assert_raise(ArgumentError, "Did not fail on unknown right") { @store.allowed?(:write, "host.madstop.com", "0.0.0.0") } assert_nothing_raised { @store.newright(:write) } assert(! @store.allowed?(:write, "host.madstop.com", "0.0.0.0"), "Defaulted to allowing access") assert_nothing_raised { @store[:write].info "This is a log message" } assert_logged(:info, /This is a log message/, "did not log from Rights") end end # $Id: rights.rb 2262 2007-03-08 00:16:53Z luke $
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.22.4 | test/network/rights.rb |
puppet-0.23.0 | test/network/rights.rb |
puppet-0.23.1 | test/network/rights.rb |
puppet-0.23.2 | test/network/rights.rb |