diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-13 23:49:53 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-13 23:49:53 +0000 |
| commit | 97c7342cfd6aefc8bff20fd8dc9cae0ee213810c (patch) | |
| tree | 2ee0b39ba9c860227175d475fd68ef5b6eb0aa39 /test | |
| parent | 02d397c7c7d08ac6203f231032cc4ab6dcf70dd9 (diff) | |
| download | puppet-97c7342cfd6aefc8bff20fd8dc9cae0ee213810c.tar.gz puppet-97c7342cfd6aefc8bff20fd8dc9cae0ee213810c.tar.xz puppet-97c7342cfd6aefc8bff20fd8dc9cae0ee213810c.zip | |
Adding fixes for solaris zones
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1271 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/server/authstore.rb | 6 | ||||
| -rwxr-xr-x | test/types/zone.rb | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/test/server/authstore.rb b/test/server/authstore.rb index 16c753581..db580d68e 100755 --- a/test/server/authstore.rb +++ b/test/server/authstore.rb @@ -114,9 +114,9 @@ class TestAuthStore < Test::Unit::TestCase assert(store.allowed?("hosttest.com", ip), "IP %s not allowed" % ip) } - assert_raise(Puppet::Server::AuthStoreError) { - store.allow("192.168.674.0") - } + #assert_raise(Puppet::Server::AuthStoreError) { + # store.allow("192.168.674.0") + #} assert_raise(Puppet::Server::AuthStoreError) { store.allow("192.168.0") diff --git a/test/types/zone.rb b/test/types/zone.rb index f96ef81f0..302e2bb05 100755 --- a/test/types/zone.rb +++ b/test/types/zone.rb @@ -152,15 +152,15 @@ class TestZone < Test::Unit::TestCase end # Make sure our state generates the correct text. - def test_inherits_state + def test_inherit_state zone = mkzone("configtesting") zone[:ensure] = :configured assert_nothing_raised { - zone[:inherits] = "/usr" + zone[:inherit] = "/usr" } - state = zone.state(:inherits) - assert(zone, "Did not get 'inherits' state") + state = zone.state(:inherit) + assert(zone, "Did not get 'inherit' state") assert_equal("add inherit-pkg-dir\nset dir=/usr\nend", state.configtext, "Got incorrect config text") @@ -254,7 +254,7 @@ end # Now, make sure everything is right. assert_equal(%w{/sbin /usr /opt/csw /lib /platform}.sort, - zone.is(:inherits).sort, "Inherited dirs did not get collected correctly." + zone.is(:inherit).sort, "Inherited dirs did not get collected correctly." ) assert_equal(["#{interface}:#{ip}"], zone.is(:ip), @@ -269,7 +269,7 @@ end zone = mkzone("configtesting") assert_nothing_raised { - zone[:inherits] = "/usr" + zone[:inherit] = "/usr" } zone[:ensure] = :configured @@ -283,7 +283,7 @@ end # Now add a new directory to inherit assert_nothing_raised { - zone[:inherits] = ["/sbin", "/usr"] + zone[:inherit] = ["/sbin", "/usr"] } assert_apply(zone) @@ -296,7 +296,7 @@ end # And then remove it. assert_nothing_raised { - zone[:inherits] = "/usr" + zone[:inherit] = "/usr" } assert_apply(zone) @@ -342,7 +342,7 @@ end %w{/opt/csw /usr/local}.each do |dir| dirs << dir if FileTest.exists? dir end - zone[:inherits] = dirs + zone[:inherit] = dirs assert(zone, "Did not make zone") @@ -374,7 +374,7 @@ end %w{/opt/csw /usr/local}.each do |dir| dirs << dir if FileTest.exists? dir end - zone[:inherits] = dirs + zone[:inherit] = dirs [[:configure, :configured], [:install, :installed], @@ -406,7 +406,7 @@ end %w{/opt/csw /usr/local}.each do |dir| dirs << dir if FileTest.exists? dir end - zone[:inherits] = dirs + zone[:inherit] = dirs assert(zone, "Did not make zone") |
