Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class TestSELinux < Test::Unit::TestCase include PuppetTest def test_filecontext path = tempfile() file = nil user = "foo_u" role = "bar_r" type = "baz_t" file = Puppet.type(:file).create( :path => path, :ensure => "file" ) assert_nothing_raised() { file[:seluser] = user } assert_nothing_raised() { file[:selrole] = role } assert_nothing_raised() { file[:seltype] = type } assert_nothing_raised() { context = Class.new(Puppet::SELFileContext) } end def test_seboolean assert( bool = Puppet::Type.type(:selboolean).create( :name => 'testbool', :value => 'on', :persistent => 'false' ) ) end def test_semodule path = tempfile() file = nil file = Puppet.type(:file).create( :path => path, :ensure => "file" ) assert( bool = Puppet::Type.type(:selmodule).create( :name => file, :selmoduledir => path, :syncversion => 'false' ) ) end end
This paste will be private.
From the Design Piracy series on my blog: