Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-registration for openSUSE:Factory checked in at 2022-01-05 13:39:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-registration (Old) and /work/SRC/openSUSE:Factory/.yast2-registration.new.1896 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-registration" Wed Jan 5 13:39:12 2022 rev:80 rq:943533 version:4.4.10 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-registration/yast2-registration.changes 2021-12-22 20:18:34.791861484 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-registration.new.1896/yast2-registration.changes 2022-01-05 13:39:20.705506353 +0100 @@ -1,0 +2,6 @@ +Fri Dec 31 16:11:06 UTC 2021 - Josef Reidinger <jreidin...@suse.com> + +- Adapt to ruby3.1 (bsc#1193192) +- 4.4.10 + +------------------------------------------------------------------- Old: ---- yast2-registration-4.4.9.tar.bz2 New: ---- yast2-registration-4.4.10.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-registration.spec ++++++ --- /var/tmp/diff_new_pack.0k0j2c/_old 2022-01-05 13:39:21.989507362 +0100 +++ /var/tmp/diff_new_pack.0k0j2c/_new 2022-01-05 13:39:21.993507366 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-registration # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.4.9 +Version: 4.4.10 Release: 0 Summary: YaST2 - Registration Module License: GPL-2.0-only ++++++ yast2-registration-4.4.9.tar.bz2 -> yast2-registration-4.4.10.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/package/yast2-registration.changes new/yast2-registration-4.4.10/package/yast2-registration.changes --- old/yast2-registration-4.4.9/package/yast2-registration.changes 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/package/yast2-registration.changes 2022-01-03 09:14:13.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Dec 31 16:11:06 UTC 2021 - Josef Reidinger <jreidin...@suse.com> + +- Adapt to ruby3.1 (bsc#1193192) +- 4.4.10 + +------------------------------------------------------------------- Tue Dec 21 09:40:12 UTC 2021 - Josef Reidinger <jreidin...@suse.com> - Adapt to ruby3 (bsc#1193192) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/package/yast2-registration.spec new/yast2-registration-4.4.10/package/yast2-registration.spec --- old/yast2-registration-4.4.9/package/yast2-registration.spec 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/package/yast2-registration.spec 2022-01-03 09:14:13.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.4.9 +Version: 4.4.10 Release: 0 Summary: YaST2 - Registration Module License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/addon_selection_dialog_test.rb new/yast2-registration-4.4.10/test/addon_selection_dialog_test.rb --- old/yast2-registration-4.4.9/test/addon_selection_dialog_test.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/addon_selection_dialog_test.rb 2022-01-03 09:14:13.000000000 +0100 @@ -113,10 +113,6 @@ end it "works in textmode" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - allow(Yast::UI).to receive(:TextMode).and_return(true) addons = load_yaml_fixture("sle15_addons.yaml") allow(Registration::Addon).to receive(:find_all).and_return(addons) @@ -130,10 +126,6 @@ end it "recomputes auto_selection after each widget change" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - addons = load_yaml_fixture("sle15_addons.yaml") allow(Registration::Addon).to receive(:find_all).and_return(addons) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/addon_sorter_spec.rb new/yast2-registration-4.4.10/test/addon_sorter_spec.rb --- old/yast2-registration-4.4.9/test/addon_sorter_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/addon_sorter_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -8,10 +8,6 @@ let(:unknown_addons) { load_yaml_fixture("available_unknown_addons.yml") } it "sorts the addons in display order" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - expected = [ "SUSE Cloud for SLE 12 Compute Nodes 5 x86_64", "SUSE Enterprise Storage 1 x86_64", @@ -33,10 +29,6 @@ end it "moves the unknown product types at the end" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - # AdvMgmt and Legacy have undefined type => at the end expected = [ "sle-sdk", "sle-we", "sle-module-public-cloud", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/addon_spec.rb new/yast2-registration-4.4.10/test/addon_spec.rb --- old/yast2-registration-4.4.9/test/addon_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/addon_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -63,10 +63,6 @@ end it "sets the registration status for dependent addons" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - registration = double( activated_products: load_yaml_fixture("activated_products.yml"), get_addon_list: load_yaml_fixture("pure_addons.yml") @@ -92,10 +88,6 @@ end it "returns the addon witht the given ID" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - addon = described_class.find_by_id(1222) expect(addon.identifier).to eq("sle-we") end @@ -118,10 +110,6 @@ describe ".registration_order" do it "returns addons sorted in the registration order" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - addons = load_yaml_fixture("sle15_addons.yaml") sorted_addons = Registration::Addon.registration_order(addons) expected_output = [ @@ -406,10 +394,6 @@ end it "returns all addon dependencies" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - expect(addon.dependencies.map(&:identifier)).to eq(["sle-ha"]) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/autoyast_addons_spec.rb new/yast2-registration-4.4.10/test/autoyast_addons_spec.rb --- old/yast2-registration-4.4.9/test/autoyast_addons_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/autoyast_addons_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -52,10 +52,6 @@ describe "#select" do it "sorts the addons according to their dependencies" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - ayaddons = Registration::AutoyastAddons.new(unsorted_addons, registration) ayaddons.select @@ -63,10 +59,6 @@ end it "automatically selects the dependent addons" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - ayaddons = Registration::AutoyastAddons.new(incomplete_addons, registration) ayaddons.select @@ -81,10 +73,6 @@ end it "selects the newest available addon" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - expect(Yast::Arch).to receive(:architecture).twice.and_return("x86_64") ayaddons = Registration::AutoyastAddons.new(addons_only_name, registration) ayaddons.select @@ -97,10 +85,6 @@ describe "#register" do it "registers the selected addons" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - expect(registration).to receive(:register_product).with( "name" => "sle-module-basesystem", "reg_code" => nil, "arch" => "x86_64", "version" => "15" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/activated_products.yml new/yast2-registration-4.4.10/test/fixtures/activated_products.yml --- old/yast2-registration-4.4.9/test/fixtures/activated_products.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/activated_products.yml 2022-01-03 09:14:13.000000000 +0100 @@ -33,7 +33,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA-GEO:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1245 @@ -88,7 +87,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA-GEO:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1500 name: SLE-HA12-Pool @@ -104,7 +102,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1117 @@ -188,7 +185,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-WE:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1223 @@ -232,7 +228,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-SDK:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1150 @@ -275,7 +270,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Legacy:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1153 @@ -319,7 +313,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Web-Scripting:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1220 @@ -361,7 +354,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Public-Cloud:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1212 @@ -401,7 +393,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Adv-Systems-Management:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1245 @@ -457,7 +448,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA-GEO:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1500 name: SLE-HA12-Pool @@ -473,7 +463,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1537 name: SLES12-Debuginfo-Pool @@ -503,4 +492,3 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-SERVER:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/available_addons.yml new/yast2-registration-4.4.10/test/fixtures/available_addons.yml --- old/yast2-registration-4.4.9/test/fixtures/available_addons.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/available_addons.yml 2022-01-03 09:14:13.000000000 +0100 @@ -267,7 +267,6 @@ :successor_ids: - 1337 :extensions: [] - modifiable: true children: - &3 !ruby/object:Registration::Addon pure_addon: *1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/available_unknown_addons.yml new/yast2-registration-4.4.10/test/fixtures/available_unknown_addons.yml --- old/yast2-registration-4.4.9/test/fixtures/available_unknown_addons.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/available_unknown_addons.yml 2022-01-03 09:14:13.000000000 +0100 @@ -40,7 +40,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true children: [] - !ruby/object:Registration::Addon pure_addon: !ruby/object:OpenStruct @@ -81,7 +80,6 @@ autorefresh: true :product_type: '' :extensions: [] - modifiable: true children: [] - !ruby/object:Registration::Addon pure_addon: !ruby/object:OpenStruct @@ -125,7 +123,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true children: [] - !ruby/object:Registration::Addon pure_addon: !ruby/object:OpenStruct @@ -168,7 +165,6 @@ autorefresh: true :product_type: :extensions: [] - modifiable: true children: [] - !ruby/object:Registration::Addon pure_addon: !ruby/object:OpenStruct @@ -210,7 +206,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true children: [] - !ruby/object:Registration::Addon pure_addon: !ruby/object:OpenStruct @@ -271,5 +266,4 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true children: [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/legacy_module_services.yml new/yast2-registration-4.4.10/test/fixtures/legacy_module_services.yml --- old/yast2-registration-4.4.9/test/fixtures/legacy_module_services.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/legacy_module_services.yml 2022-01-03 09:14:13.000000000 +0100 @@ -37,5 +37,3 @@ url: https://nu.novell.com/SUSE:/Products:/SLE-12/images/repo/SLE-12-module-legacy-POOL-x86_64-Media1 enabled: true autorefresh: false - modifiable: true - modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/migration_service.yml new/yast2-registration-4.4.10/test/fixtures/migration_service.yml --- old/yast2-registration-4.4.9/test/fixtures/migration_service.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/migration_service.yml 2022-01-03 09:14:13.000000000 +0100 @@ -109,7 +109,6 @@ autorefresh: false :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1324 @@ -156,6 +155,3 @@ autorefresh: false :product_type: extension :extensions: [] - modifiable: true - modifiable: true -modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/migration_sles15_activated_products.yml new/yast2-registration-4.4.10/test/fixtures/migration_sles15_activated_products.yml --- old/yast2-registration-4.4.9/test/fixtures/migration_sles15_activated_products.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/migration_sles15_activated_products.yml 2022-01-03 09:14:13.000000000 +0100 @@ -109,7 +109,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1536 @@ -160,7 +159,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1153 @@ -223,7 +221,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1518 @@ -279,7 +276,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1678 @@ -339,7 +335,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1427 @@ -402,7 +397,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1617 @@ -456,7 +450,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1220 @@ -517,7 +510,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1526 @@ -572,7 +564,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1529 @@ -623,7 +614,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1725 @@ -679,7 +669,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1729 @@ -733,7 +722,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1431 @@ -798,7 +786,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1212 @@ -857,7 +844,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1520 @@ -913,7 +899,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1618 @@ -972,7 +957,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1150 @@ -1034,7 +1018,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1724 @@ -1090,7 +1073,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1730 @@ -1144,7 +1126,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1432 @@ -1253,8 +1234,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1349 @@ -1310,7 +1289,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1352 @@ -1366,7 +1344,6 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1440 @@ -1426,7 +1403,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1332 @@ -1481,7 +1457,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1341 @@ -1532,7 +1507,6 @@ autorefresh: true :product_type: module :extensions: [] - modifiable: true - !ruby/object:OpenStruct table: :id: 1619 @@ -1579,5 +1553,3 @@ autorefresh: true :product_type: extension :extensions: [] - modifiable: true - modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/pure_addons.yml new/yast2-registration-4.4.10/test/fixtures/pure_addons.yml --- old/yast2-registration-4.4.9/test/fixtures/pure_addons.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/pure_addons.yml 2022-01-03 09:14:13.000000000 +0100 @@ -59,7 +59,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-WE:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1223 @@ -102,7 +101,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-SDK:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1150 @@ -145,7 +143,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Legacy:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1153 @@ -189,7 +186,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Web-Scripting:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1220 @@ -230,7 +226,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Public-Cloud:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1212 @@ -270,7 +265,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-Module-Adv-Systems-Management:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1245 @@ -325,7 +319,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA-GEO:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1500 name: SLE-HA12-Pool @@ -341,4 +334,3 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HA:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/remote_product.yml new/yast2-registration-4.4.10/test/fixtures/remote_product.yml --- old/yast2-registration-4.4.9/test/fixtures/remote_product.yml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/remote_product.yml 2022-01-03 09:14:13.000000000 +0100 @@ -66,7 +66,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-WE:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1223 @@ -109,7 +108,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-SDK:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true - !ruby/object:OpenStruct table: :id: 1150 @@ -142,7 +140,6 @@ url: https://nu.novell.com/SUSE:/Products:/SLE-12/images/repo/SLE-12-module-legacy-POOL-x86_64-Media1 enabled: true autorefresh: false - modifiable: true - !ruby/object:OpenStruct table: :id: 1153 @@ -175,7 +172,6 @@ url: https://nu.novell.com/SUSE:/Products:/SLE-12/images/repo/SLE-12-module-web-scripting-POOL-x86_64-Media1 enabled: true autorefresh: false - modifiable: true - !ruby/object:OpenStruct table: :id: 1220 @@ -208,7 +204,6 @@ url: https://nu.novell.com/SUSE:/Products:/SLE-12/images/repo/SLE-12-module-public-cloud-POOL-x86_64-Media1 enabled: true autorefresh: false - modifiable: true - !ruby/object:OpenStruct table: :id: 1212 @@ -238,7 +233,6 @@ url: https://nu.novell.com/SUSE:/Products:/SLE-12/images/repo/SLE-12-module-adv-systems-management-POOL-x86_64-Media1 enabled: true autorefresh: false - modifiable: true - !ruby/object:OpenStruct table: :id: 1155 @@ -294,7 +288,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HAE-GEO:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1500 name: SLE-HAE12-Pool @@ -310,7 +303,6 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-HAE:/12:/x86_64/standard enabled: true autorefresh: true - modifiable: true :repositories: - id: 1220 name: SLES12-Debuginfo-Updates @@ -333,4 +325,3 @@ url: https://nu.novell.com/SUSE:/Updates:/SLE-SERVER:/12:/x86_64/standard enabled: true autorefresh: true -modifiable: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/fixtures/sle15_addons.yaml new/yast2-registration-4.4.10/test/fixtures/sle15_addons.yaml --- old/yast2-registration-4.4.9/test/fixtures/sle15_addons.yaml 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/fixtures/sle15_addons.yaml 2022-01-03 09:14:13.000000000 +0100 @@ -196,7 +196,6 @@ :shortname: Development-Tools-Module :recommended: false :extensions: [] - modifiable: true - &8 !ruby/object:OpenStruct table: :id: 1580 @@ -263,7 +262,6 @@ :shortname: Server-Applications-Module :recommended: false :extensions: [] - modifiable: true - &9 !ruby/object:OpenStruct table: :id: 1583 @@ -331,7 +329,6 @@ :shortname: SLEWE15 :recommended: false :extensions: [] - modifiable: true - &10 !ruby/object:OpenStruct table: :id: 15831 @@ -399,8 +396,6 @@ :shortname: SLEWE16 :recommended: false :extensions: [] - modifiable: true - modifiable: true - &3 !ruby/object:OpenStruct table: :id: 1581 @@ -470,7 +465,6 @@ :shortname: Legacy-Module :recommended: false :extensions: [] - modifiable: true - &4 !ruby/object:OpenStruct table: :id: 1611 @@ -532,7 +526,6 @@ :shortname: Public-Cloud-Module :recommended: false :extensions: [] - modifiable: true - &5 !ruby/object:OpenStruct table: :id: 1582 @@ -600,7 +593,6 @@ :shortname: SLEHA15 :recommended: false :extensions: [] - modifiable: true depends_on: - &7 !ruby/object:Registration::Addon pure_addon: *1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/migration_repos_workflow_spec.rb new/yast2-registration-4.4.10/test/migration_repos_workflow_spec.rb --- old/yast2-registration-4.4.9/test/migration_repos_workflow_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/migration_repos_workflow_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -161,10 +161,6 @@ end it "selects products to install" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - set_success_expectations expect(Registration::SwMgmt).to receive(:select_addon_products) do |services| expect(services.first.id).to eq(1311) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/registration_spec.rb new/yast2-registration-4.4.10/test/registration_spec.rb --- old/yast2-registration-4.4.9/test/registration_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/registration_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -137,10 +137,6 @@ end it "downloads available extensions" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - addons = Registration::Registration.new.get_addon_list # HA-GEO is extension for HA so it's not included in the list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/registration_sync_workflow_spec.rb new/yast2-registration-4.4.10/test/registration_sync_workflow_spec.rb --- old/yast2-registration-4.4.9/test/registration_sync_workflow_spec.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/registration_sync_workflow_spec.rb 2022-01-03 09:14:13.000000000 +0100 @@ -43,10 +43,6 @@ end it "downgrades the base product first" do - if RUBY_VERSION.start_with?("3.0.") - pending "YaML loading of older OpenStruct is broken in ruby 3.0" - end - installed_products = [legacy, sles] expect(Registration::SwMgmt).to receive(:installed_products).and_return(installed_products) expect(registration).to receive(:activated_products) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.4.9/test/spec_helper.rb new/yast2-registration-4.4.10/test/spec_helper.rb --- old/yast2-registration-4.4.9/test/spec_helper.rb 2021-12-21 17:07:50.000000000 +0100 +++ new/yast2-registration-4.4.10/test/spec_helper.rb 2022-01-03 09:14:13.000000000 +0100 @@ -72,7 +72,12 @@ require "yaml" def load_yaml_fixture(file) - YAML.load_file(fixtures_file(file)) + # if yaml is already split to safe and unsafe, lets use unsafe as we need specific structures + if YAML.respond_to?(:unsafe_load_file) + YAML.unsafe_load_file(fixtures_file(file)) + else + YAML.load_file(fixtures_file(file)) + end end require "yast"