Hello community,

here is the log from the commit of package yast2-network for openSUSE:Factory 
checked in at 2017-08-13 14:54:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-network (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-network.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-network"

Sun Aug 13 14:54:39 2017 rev:376 rq:515941 version:3.3.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-network/yast2-network.changes      
2017-08-04 11:57:31.939275787 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-network.new/yast2-network.changes 
2017-08-13 14:54:43.122438385 +0200
@@ -1,0 +2,7 @@
+Tue Aug  8 12:52:13 UTC 2017 - igonzalezs...@suse.com
+
+- bnc#1037727
+  - fixed device name recognition during AY installation
+- 3.3.6
+
+-------------------------------------------------------------------

Old:
----
  yast2-network-3.3.5.tar.bz2

New:
----
  yast2-network-3.3.6.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-network.spec ++++++
--- /var/tmp/diff_new_pack.6n0V3T/_old  2017-08-13 14:54:44.310271708 +0200
+++ /var/tmp/diff_new_pack.6n0V3T/_new  2017-08-13 14:54:44.322270024 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-network
-Version:        3.3.5
+Version:        3.3.6
 Release:        0
 BuildArch:      noarch
 

++++++ yast2-network-3.3.5.tar.bz2 -> yast2-network-3.3.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-network-3.3.5/package/yast2-network.changes 
new/yast2-network-3.3.6/package/yast2-network.changes
--- old/yast2-network-3.3.5/package/yast2-network.changes       2017-08-02 
15:32:11.181221713 +0200
+++ new/yast2-network-3.3.6/package/yast2-network.changes       2017-08-10 
17:02:49.346454947 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Aug  8 12:52:13 UTC 2017 - igonzalezs...@suse.com
+
+- bnc#1037727
+  - fixed device name recognition during AY installation
+- 3.3.6
+
+-------------------------------------------------------------------
 Wed Aug  2 13:01:48 UTC 2017 - knut.anders...@suse.com
 
 - bsc#1051624
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-network-3.3.5/package/yast2-network.spec 
new/yast2-network-3.3.6/package/yast2-network.spec
--- old/yast2-network-3.3.5/package/yast2-network.spec  2017-08-02 
15:32:11.181221713 +0200
+++ new/yast2-network-3.3.6/package/yast2-network.spec  2017-08-10 
17:02:49.346454947 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-network
-Version:        3.3.5
+Version:        3.3.6
 Release:        0
 BuildArch:      noarch
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-network-3.3.5/src/lib/network/network_autoyast.rb 
new/yast2-network-3.3.6/src/lib/network/network_autoyast.rb
--- old/yast2-network-3.3.5/src/lib/network/network_autoyast.rb 2017-08-02 
15:32:11.193221713 +0200
+++ new/yast2-network-3.3.6/src/lib/network/network_autoyast.rb 2017-08-10 
17:02:49.690454947 +0200
@@ -332,7 +332,7 @@
         end
         next if !matching_item
 
-        name_from = matching_item["ifcfg"] || matching_item["dev_name"]
+        name_from = LanItems.GetDeviceName(item)
         log.info("Matching device found - renaming <#{name_from}> -> 
<#{name_to}>")
 
         # find rule in collision
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-network-3.3.5/test/host_test.rb 
new/yast2-network-3.3.6/test/host_test.rb
--- old/yast2-network-3.3.5/test/host_test.rb   2017-08-02 15:32:11.201221713 
+0200
+++ new/yast2-network-3.3.6/test/host_test.rb   2017-08-10 17:02:49.806454947 
+0200
@@ -261,6 +261,38 @@
       Yast::Host.Update(hostname, hostname, ip)
       expect(Yast::Host.name_map[ip]).not_to eql ["#{hostname} #{hostname}"]
     end
+
+    it "doesn't write entry with duplicate hostname" do
+      ip = "1.1.1.1"
+      hostname = "linux"
+
+      Yast::Host.Update(hostname, hostname, [ip])
+      expect(Yast::Host.name_map[ip]).not_to eql ["#{hostname} #{hostname}"]
+    end
+  end
+
+  describe ".ResolveHostnameToStaticIPs" do
+    let(:static_ips) { ["1.1.1.1", "2.2.2.2"] }
+    let(:fqhostname) { "sles.suse.de" }
+
+    before(:each) do
+      allow(Yast::Host)
+        .to receive(:StaticIPs)
+        .and_return(static_ips)
+      allow(Yast::Hostname).to receive(:MergeFQ).and_return(fqhostname)
+    end
+
+    it "doesn't call .Update when an IP already has a hostname" do
+      hostname = "linux"
+
+      Yast::Host.Update(hostname, hostname, [static_ips[0]])
+
+      expect(Yast::Host)
+        .not_to receive(:Update)
+        .with(fqhostname, fqhostname, static_ips)
+
+      Yast::Host.ResolveHostnameToStaticIPs
+    end
   end
 
   describe ".EnsureHostnameResolvable" do


Reply via email to