network_config::redhat: allow "_" in network interface names #150
Annotations
3 warnings
Run tests:
spec/unit/type/network_config_spec.rb#L68
Puppet::Type::Network_config when validating the attribute options is a descendant of the KeyValue property
Failure/Error: expect(Puppet::Type.type(:network_config).propertybyname(:options).ancestors).to include(Puppet::Property::Ensure)
expected [Puppet::Type::Network_config::Options, Puppet::Property, Puppet::Parameter, Puppet::Util::Logging, P...acts, FastGettext::Translation, JSON::Ext::Generator::GeneratorMethods::Object, Kernel, BasicObject] to include Puppet::Property::Ensure
Diff:
@@ -1,12 +1,23 @@
-[Puppet::Property::Ensure]
+[Puppet::Type::Network_config::Options,
+ Puppet::Property,
+ Puppet::Parameter,
+ Puppet::Util::Logging,
+ Puppet::Util::Errors,
+ Puppet::Util,
+ Object,
+ RspecPuppetFacts,
+ FastGettext::Translation,
+ JSON::Ext::Generator::GeneratorMethods::Object,
+ Kernel,
+ BasicObject]
|
Run tests:
spec/unit/type/network_config_spec.rb#L85
Puppet::Type::Network_config when validating the attribute value ipaddress using the inet family fails when passed an IPv6 address
Failure/Error: expect { Puppet::Type.type(:network_config).new(name: 'yay', family: :inet, ipaddress: address6) }.to raise_error(%r{not a valid ipv4 address})
expected Exception with message matching /not a valid ipv4 address/ but nothing was raised
|
Run tests:
spec/unit/type/network_config_spec.rb#L96
Puppet::Type::Network_config when validating the attribute value ipaddress using the inet6 family fails when passed an IPv4 address
Failure/Error: expect { Puppet::Type.type(:network_config).new(name: 'yay', family: :inet6, ipaddress: address4) }.to raise_error(%r{not a valid ipv6 address})
expected Exception with message matching /not a valid ipv6 address/ but nothing was raised
|
Loading