Issue #9415 has been updated by James Turnbull.

I got four failed tests:

<pre>
Failures:

  1) Puppet::Network::AuthStore when checking a IPv4 subnet type of allow 
should not allow the IPv4 192.168.0.254
     Failure/Error: @authstore.should_not be_allowed(ip, @serverip)
       expected allowed?("192.168.0.254", "192.168.1.1") to return false, got 
true
     # ./authstore_spec.rb:85

  2) Puppet::Network::AuthStore when checking a IPv4 subnet type of allow 
should not allow the IPv4 192.168.0.255
     Failure/Error: @authstore.should_not be_allowed(ip, @serverip)
       expected allowed?("192.168.0.255", "192.168.1.1") to return false, got 
true
     # ./authstore_spec.rb:85

  3) Puppet::Network::AuthStore when checking a IPv4 subnet type of allow 
should not allow the IPv4 192.168.2.0
     Failure/Error: @authstore.should_not be_allowed(ip, @serverip)
       expected allowed?("192.168.2.0", "192.168.1.1") to return false, got true
     # ./authstore_spec.rb:85

  4) Puppet::Network::AuthStore when checking a IPv4 subnet type of allow 
should not allow the IPv4 192.168.2.1
     Failure/Error: @authstore.should_not be_allowed(ip, @serverip)
       expected allowed?("192.168.2.1", "192.168.1.1") to return false, got true
     # ./authstore_spec.rb:85
</pre>
----------------------------------------
Feature #9415: use IPv4 netmasks in allow statements in config files
https://projects.puppetlabs.com/issues/9415

Author: Jim Pirzyk
Status: Tests Insufficient
Priority: Normal
Assignee: Jim Pirzyk
Category: plumbing
Target version: 
Affected Puppet version: 2.7.3
Keywords: 
Branch: 


If I use the following template for the namespaceauth.conf file (extends to 
other config files too)

[fileserver]
        allow *.<%= domain %>
        allow <%= network_eth0 %>/<%= netmask_eth0 %>
        allow 127.0.0.1

I get the following error:

Invalid pattern 192.168.1.0/255.255.255.0

In lieu of having a netmasklen_eth0 fact, I have supplied a patch to enable 
this syntax.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to