Hello community, here is the log from the commit of package yast2-firewall for openSUSE:Factory checked in at 2020-06-10 00:36:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-firewall (Old) and /work/SRC/openSUSE:Factory/.yast2-firewall.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-firewall" Wed Jun 10 00:36:35 2020 rev:82 rq:810210 version:4.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-firewall/yast2-firewall.changes 2020-05-09 19:51:23.304713461 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-firewall.new.3606/yast2-firewall.changes 2020-06-10 00:36:55.205157441 +0200 @@ -1,0 +2,6 @@ +Thu May 7 15:22:56 CEST 2020 - sch...@suse.de + +- AutoYaST: Cleanup/improve issue handling (bsc#1171335). +- 4.3.1 + +------------------------------------------------------------------- Old: ---- yast2-firewall-4.3.0.tar.bz2 New: ---- yast2-firewall-4.3.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-firewall.spec ++++++ --- /var/tmp/diff_new_pack.llWvIm/_old 2020-06-10 00:36:56.969162173 +0200 +++ /var/tmp/diff_new_pack.llWvIm/_new 2020-06-10 00:36:56.969162173 +0200 @@ -17,7 +17,7 @@ Name: yast2-firewall -Version: 4.3.0 +Version: 4.3.1 Release: 0 Summary: YaST2 - Firewall Configuration License: GPL-2.0-only @@ -30,13 +30,13 @@ BuildRequires: update-desktop-files BuildRequires: yast2-devtools >= 4.2.2 BuildRequires: yast2-testsuite -# Removed zone name from common attributes definition -BuildRequires: yast2 >= 4.1.67 +# AutoYaST issue report +BuildRequires: yast2 >= 4.3.2 BuildRequires: rubygem(%rb_default_ruby_abi:rspec) BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake) -# Removed zone name from common attributes definition -Requires: yast2 >= 4.1.67 +# AutoYaST issue report +Requires: yast2 >= 4.3.2 Requires: yast2-ruby-bindings >= 1.0.0 # ButtonBox widget ++++++ yast2-firewall-4.3.0.tar.bz2 -> yast2-firewall-4.3.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firewall-4.3.0/package/yast2-firewall.changes new/yast2-firewall-4.3.1/package/yast2-firewall.changes --- old/yast2-firewall-4.3.0/package/yast2-firewall.changes 2020-05-07 18:04:54.000000000 +0200 +++ new/yast2-firewall-4.3.1/package/yast2-firewall.changes 2020-05-29 15:06:39.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 7 15:22:56 CEST 2020 - sch...@suse.de + +- AutoYaST: Cleanup/improve issue handling (bsc#1171335). +- 4.3.1 + +------------------------------------------------------------------- Thu May 7 10:10:37 UTC 2020 - Josef Reidinger <jreidin...@suse.com> - Autoyast schema: Allow optional types for string and map objects diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firewall-4.3.0/package/yast2-firewall.spec new/yast2-firewall-4.3.1/package/yast2-firewall.spec --- old/yast2-firewall-4.3.0/package/yast2-firewall.spec 2020-05-07 18:04:54.000000000 +0200 +++ new/yast2-firewall-4.3.1/package/yast2-firewall.spec 2020-05-29 15:06:39.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-firewall -Version: 4.3.0 +Version: 4.3.1 Release: 0 Summary: YaST2 - Firewall Configuration Group: System/YaST @@ -28,13 +28,13 @@ BuildRequires: perl-XML-Writer update-desktop-files yast2-testsuite BuildRequires: yast2-devtools >= 4.2.2 -# Removed zone name from common attributes definition -BuildRequires: yast2 >= 4.1.67 +# AutoYaST issue report +BuildRequires: yast2 >= 4.3.2 BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake) BuildRequires: rubygem(%rb_default_ruby_abi:rspec) -# Removed zone name from common attributes definition -Requires: yast2 >= 4.1.67 +# AutoYaST issue report +Requires: yast2 >= 4.3.2 Requires: yast2-ruby-bindings >= 1.0.0 # ButtonBox widget diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firewall-4.3.0/src/lib/y2firewall/autoinst_profile/firewall_section.rb new/yast2-firewall-4.3.1/src/lib/y2firewall/autoinst_profile/firewall_section.rb --- old/yast2-firewall-4.3.0/src/lib/y2firewall/autoinst_profile/firewall_section.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-firewall-4.3.1/src/lib/y2firewall/autoinst_profile/firewall_section.rb 2020-05-29 15:06:39.000000000 +0200 @@ -0,0 +1,38 @@ +# Copyright (c) [2020] SUSE LLC +# +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as published +# by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, contact SUSE LLC. +# +# To contact SUSE LLC about this file by physical or electronic mail, you may +# find current contact information at www.suse.com. + +require "installation/autoinst_profile/section_with_attributes" + +module Y2Firewall + module AutoinstProfile + # This class represents an AutoYaST <firewall> section + # + class FirewallSection < ::Installation::AutoinstProfile::SectionWithAttributes + # Creates an instance based on the profile representation used by the AutoYaST modules + # (hash with nested hashes and arrays). + # + # @param _hash [Hash] Firewall section from an AutoYaST profile + # @return [FirewallSection] + def self.new_from_hashes(_hash) + result = new + result + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firewall-4.3.0/src/lib/y2firewall/clients/auto.rb new/yast2-firewall-4.3.1/src/lib/y2firewall/clients/auto.rb --- old/yast2-firewall-4.3.0/src/lib/y2firewall/clients/auto.rb 2020-05-07 18:04:54.000000000 +0200 +++ new/yast2-firewall-4.3.1/src/lib/y2firewall/clients/auto.rb 2020-05-29 15:06:39.000000000 +0200 @@ -25,6 +25,7 @@ require "y2firewall/proposal_settings" require "y2firewall/summary_presenter" require "y2firewall/dialogs/main" +require "y2firewall/autoinst_profile/firewall_section" require "installation/auto_client" Yast.import "Mode" @@ -200,9 +201,15 @@ all_interfaces = zones.flat_map { |zone| zone["interfaces"] || [] } double_entries = all_interfaces.select { |i| all_interfaces.count(i) > 1 }.uniq unless double_entries.empty? - AutoInstall.issues_list.add(:invalid_value, "firewall", "interfaces", + AutoInstall.issues_list.add( + ::Installation::AutoinstIssues::InvalidValue, + Y2Firewall::AutoinstProfile::FirewallSection.new_from_hashes( + self.class.profile + ), + "interfaces", double_entries.join(","), - _("This interface has been defined for more than one zone.")) + _("This interface has been defined for more than one zone.") + ) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firewall-4.3.0/test/lib/y2firewall/clients/auto_test.rb new/yast2-firewall-4.3.1/test/lib/y2firewall/clients/auto_test.rb --- old/yast2-firewall-4.3.0/test/lib/y2firewall/clients/auto_test.rb 2020-05-07 18:04:54.000000000 +0200 +++ new/yast2-firewall-4.3.1/test/lib/y2firewall/clients/auto_test.rb 2020-05-29 15:06:39.000000000 +0200 @@ -22,6 +22,7 @@ require_relative "../../../test_helper" require "y2firewall/dialogs/main" require "y2firewall/clients/auto" +require "installation/autoinst_issues" describe Y2Firewall::Clients::Auto do let(:firewalld) { Y2Firewall::Firewalld.instance } @@ -171,6 +172,14 @@ end context "once the current configuration has been set" do + + let(:fw_section) { Y2Firewall::AutoinstProfile::FirewallSection.new } + + before do + allow(Y2Firewall::AutoinstProfile::FirewallSection).to receive(:new_from_hashes) + .and_return(fw_section) + end + it "imports the given profile" do expect(autoyast).to receive(:import).with(arguments) @@ -191,7 +200,8 @@ .and_return("zones" => [{ "interfaces" => ["eth0"], "name" => "public" }, { "interfaces" => ["eth0", "eth0"], "name" => "trusted" }]) expect(i_list).to receive(:add) - .with(:invalid_value, "firewall", "interfaces", + .with(::Installation::AutoinstIssues::InvalidValue, + fw_section, "interfaces", "eth0", "This interface has been defined for more than one zone.") subject.import(arguments, false)