Sha256: cdaf9cf5f502c98ed23722133f095aba05aa5f7c16ca20b37a1378c1c4929184
Contents?: true
Size: 837 Bytes
Versions: 6
Compression:
Stored size: 837 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../lib/puppettest' 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
Version data entries
6 entries across 6 versions & 1 rubygems