Skip to content

Commit

Permalink
Merge pull request #50 from teclator/extend_supported_properties_test
Browse files Browse the repository at this point in the history
Added more properties to the SuSEFirewall2 profile.
  • Loading branch information
teclator committed Feb 15, 2018
2 parents 9ec1b24 + 2919378 commit 6758455
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/lib/y2firewall/importer_strategies/suse_firewall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@

let(:profile) do
{
"enable_firewall" => true,
"start_firewall" => false,
"FW_DEV_EXT" => "eth0",
"FW_DEV_INT" => "eth1",
"FW_DEV_DMZ" => "eth2 any",
"FW_CONFIGURATIONS_EXT" => "dhcp-server sshd netbios-server vnc-server",
"FW_SERVICES_EXT_TCP" => "80 443 8080:8084",
"FW_SERVICES_EXT_UDP" => "53",
"FW_SERVICES_EXT_IP" => "esp",
"FW_MASQUERADE" => masquerade
"FW_MASQUERADE" => masquerade,
"FW_LOG_DROP_CRIT" => "yes",
"FW_LOG_DROP_ALL" => "no",
"FW_LOG_ACCEPT_CRIT" => "no"
}
end

Expand Down Expand Up @@ -104,6 +109,7 @@
context "and all the properties can be translated to firewalld" do
it "recommends to the user the use of firewalld schema" do
expect(Yast::Report).to receive(:Warning)
expect(Yast::Report).to_not receive(:Error)

subject.import
end
Expand Down

0 comments on commit 6758455

Please sign in to comment.