firewalld_zone: Fix failure creating new zone #74
Annotations
2 errors
Run tests:
spec/unit/puppet/type/firewalld_zone_spec.rb#L127
Puppet::Type::Firewalld_zone provider with minimal parameters creates
Failure/Error: provider.expects(:execute_firewall_cmd).with(['--remove-icmp-block-inversion'], 'restricted')
Mocha::ExpectationError:
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, invoked never: Firewalld_zone[restricted](provider=firewall_cmd).execute_firewall_cmd(["--remove-icmp-block-inversion"], "restricted")
satisfied expectations:
- allowed any number of times, invoked never: #<Puppet::Util::Feature:0x4a60>.root?(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Puppet::Provider::Firewalld>.state(any_parameters)
- expected exactly once, invoked once: Firewalld_zone[restricted](provider=firewall_cmd).execute_firewall_cmd(["--add-interface", "eth0"])
- expected exactly once, invoked once: Firewalld_zone[restricted](provider=firewall_cmd).interfaces(any_parameters)
- expected exactly once, invoked once: Firewalld_zone[restricted](provider=firewall_cmd).execute_firewall_cmd(["--set-target", "%%REJECT%%"])
- expected exactly once, invoked once: Firewalld_zone[restricted](provider=firewall_cmd).execute_firewall_cmd(["--new-zone", "restricted"], nil)
|
Run tests
Process completed with exit code 1.
|
Loading