Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package autoyast2 for openSUSE:Factory checked in at 2021-09-26 21:48:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old) and /work/SRC/openSUSE:Factory/.autoyast2.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autoyast2" Sun Sep 26 21:48:06 2021 rev:306 rq:920669 version:4.4.16 Changes: -------- --- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes 2021-07-29 21:31:28.468807234 +0200 +++ /work/SRC/openSUSE:Factory/.autoyast2.new.1899/autoyast2.changes 2021-09-26 21:48:07.322736023 +0200 @@ -1,0 +2,6 @@ +Tue Sep 21 11:13:59 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Add the "hostname" element to the rules schema (bsc#1190696). +- 4.4.16 + +------------------------------------------------------------------- Old: ---- autoyast2-4.4.15.tar.bz2 New: ---- autoyast2-4.4.16.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autoyast2.spec ++++++ --- /var/tmp/diff_new_pack.MGhwjZ/_old 2021-09-26 21:48:07.954736919 +0200 +++ /var/tmp/diff_new_pack.MGhwjZ/_new 2021-09-26 21:48:07.958736925 +0200 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.4.15 +Version: 4.4.16 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only ++++++ autoyast2-4.4.15.tar.bz2 -> autoyast2-4.4.16.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.15/package/autoyast2.changes new/autoyast2-4.4.16/package/autoyast2.changes --- old/autoyast2-4.4.15/package/autoyast2.changes 2021-07-26 09:49:34.000000000 +0200 +++ new/autoyast2-4.4.16/package/autoyast2.changes 2021-09-21 18:06:19.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 21 11:13:59 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Add the "hostname" element to the rules schema (bsc#1190696). +- 4.4.16 + +------------------------------------------------------------------- Tue Jul 20 14:45:51 UTC 2021 - Ladislav Slez??k <lsle...@suse.cz> - Fixed handling of the "final_reboot" and "final_halt" options, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.15/package/autoyast2.spec new/autoyast2-4.4.16/package/autoyast2.spec --- old/autoyast2-4.4.15/package/autoyast2.spec 2021-07-26 09:49:34.000000000 +0200 +++ new/autoyast2-4.4.16/package/autoyast2.spec 2021-09-21 18:06:19.000000000 +0200 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.4.15 +Version: 4.4.16 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.15/src/autoyast-rnc/rules.rnc new/autoyast2-4.4.16/src/autoyast-rnc/rules.rnc --- old/autoyast2-4.4.15/src/autoyast-rnc/rules.rnc 2021-07-26 09:49:34.000000000 +0200 +++ new/autoyast2-4.4.16/src/autoyast-rnc/rules.rnc 2021-09-21 18:06:19.000000000 +0200 @@ -46,6 +46,7 @@ | custom5 | disksize | domain + | hostname | hostaddress | hostid | karch @@ -71,6 +72,7 @@ custom5 = element custom5 { MAP, (match_text & match_type? & script) } disksize = element disksize { MAP, (match_text & match_type?) } domain = element domain { MAP, (match_text & match_type?) } +hostname = element hostname { MAP, (match_text & match_type?) } hostaddress = element hostaddress { MAP, (match_text & match_type?) } hostid = element hostid { MAP, (match_text & match_type?) } installed_product = element installed_product { MAP, (match_text & match_type?) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.15/test/AutoinstScripts_test.rb new/autoyast2-4.4.16/test/AutoinstScripts_test.rb --- old/autoyast2-4.4.15/test/AutoinstScripts_test.rb 2021-07-26 09:49:34.000000000 +0200 +++ new/autoyast2-4.4.16/test/AutoinstScripts_test.rb 2021-09-21 18:06:19.000000000 +0200 @@ -359,43 +359,5 @@ subject.Write("init-scripts", true) end end - - it "executes script" do - data = Yast::ProfileHash.new( - "pre-scripts" => [{ "location" => "http://test.com/script", "filename" => "script1", - "interpreter" => "shell", "rerun" => true }] - ) - - expect(Yast::SCR).to receive(:Execute).with(path(".target.bash"), /\/bin\/sh/) - - subject.Import(data) - subject.Write("pre-scripts", true) - end - - it "shows a feedback during script when notification is set for script" do - data = Yast::ProfileHash.new( - "pre-scripts" => [{ "location" => "http://test.com/script", "filename" => "script1", - "interpreter" => "shell", "rerun" => true, "notification" => "Script1!!!" }] - ) - - expect(Yast::Popup).to receive(:ShowFeedback).with("", "Script1!!!") - expect(Yast::Popup).to receive(:ClearFeedback) - - subject.Import(data) - subject.Write("pre-scripts", true) - end - - it "shows a report if feedback parameter is set" do - data = Yast::ProfileHash.new( - "pre-scripts" => [{ "location" => "http://test.com/script", "filename" => "script1", - "interpreter" => "shell", "feedback" => true, "feedback_type" => "error", "rerun" => true }] - ) - - allow(Yast::SCR).to receive(:Read).and_return("test") - expect(Yast::Report).to receive(:Error) - - subject.Import(data) - subject.Write("pre-scripts", true) - end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.15/test/lib/autoinstall/script_runner_test.rb new/autoyast2-4.4.16/test/lib/autoinstall/script_runner_test.rb --- old/autoyast2-4.4.15/test/lib/autoinstall/script_runner_test.rb 2021-07-26 09:49:34.000000000 +0200 +++ new/autoyast2-4.4.16/test/lib/autoinstall/script_runner_test.rb 2021-09-21 18:06:19.000000000 +0200 @@ -52,8 +52,21 @@ it "displays the notification" do expect(Yast::Popup).to receive(:ShowFeedback) .with("", "A script is running...") + expect(Yast::Popup).to receive(:ClearFeedback) runner.run(script) end + + context "and the script was not executed" do + before do + allow(script).to receive(:execute).and_return(nil) + end + + it "closes the notification" do + expect(Yast::Popup).to receive(:ShowFeedback) + expect(Yast::Popup).to receive(:ClearFeedback) + runner.run(script) + end + end end context "when a notification is not defined" do