Closed igalic closed 5 years ago
@igalic tests fail. Can you look?
@jyaworski the tests are failing, because they expect to succeed ;)
@igalic could you please take a look here again?
thanks for the reminder, this totally fell off my radar :(
@igalic also rebase for new tests.
rebased and --force pushed tests still failing i guess this is maybe what my stash was all about?????
@igalic the tests started failing again at some point, so you'll have to rebase again before you start working on this
i'm still not sure if this is an issue with my changes, or with our tests. example of a failure:
8) Puppet::Type::Network_route when validating the attribute value netmask converts IPv6 netmasks of the CIDR form
Failure/Error: raise("IPv6 routes are not supported on Debian") if a.ipv6? && Facter.value(:osfamily) == 'Debian'
Puppet::ResourceError:
Parameter network failed on Network_route[lxd bridge]: Validate method failed for class network: IPv6 routes are not supported on Debian
# ./lib/puppet/type/network_route.rb:24:in `block (3 levels) in <top (required)>'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/parameter.rb:452:in `validate'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/property.rb:483:in `block in should='
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/property.rb:483:in `each'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/property.rb:483:in `should='
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/property.rb:535:in `value='
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/type.rb:673:in `[]='
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/type.rb:2429:in `block in set_parameters'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/type.rb:2423:in `each'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/type.rb:2423:in `set_parameters'
# /home/igalic/.gem/ruby/2.3.1/gems/puppet-4.4.2/lib/puppet/type.rb:2379:in `initialize'
# ./spec/unit/type/network_route_spec.rb:58:in `new'
# ./spec/unit/type/network_route_spec.rb:58:in `block (4 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# RuntimeError:
# IPv6 routes are not supported on Debian
# ./lib/puppet/type/network_route.rb:24:in `block (3 levels) in <top (required)>'
Finished in 4.72 seconds (files took 1.49 seconds to load)
281 examples, 8 failures, 3 pending
the problem here is that our tests don't have the loop over over platforms, which would set the fact — the reason here of course is that types are supposed to be platform independent!
From a very brief inspection of the output above: I think this works as intended, but the test needs updating to actually expect (and in the process, catch) this exception.
aye! i may have time next week to give it a go and actually fix it
@igalic ping
Hello. I'm going to close this PR due to inactivity. Please reopen and rebase it if you're still interested in it.
at least not through
/etc/network/routes
. You could still set them through/etc/network/interfaces
with post-up and & pre-down rules.