Hello community,

here is the log from the commit of package python-shaptools for 
openSUSE:Factory checked in at 2020-08-28 21:21:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-shaptools (Old)
 and      /work/SRC/openSUSE:Factory/.python-shaptools.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-shaptools"

Fri Aug 28 21:21:40 2020 rev:13 rq:829109 version:0.3.9+git.1598342516.94e944d

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-shaptools/python-shaptools.changes        
2020-06-02 14:42:08.136184553 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-shaptools.new.3399/python-shaptools.changes  
    2020-08-28 21:22:29.888357314 +0200
@@ -1,0 +2,8 @@
+Tue Aug 25 06:53:29 UTC 2020 - Xabier Arbulu <[email protected]>
+
+- Create version 0.3.9
+- Fix issue when secondary registration fails after a successful
+  SSFS files copy process. Now the registration return code will
+  be checked in the new call (bsc#1175709)
+
+-------------------------------------------------------------------

Old:
----
  python-shaptools-0.3.8+git.1591005605.6537616.tar.gz

New:
----
  python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz

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

Other differences:
------------------
++++++ python-shaptools.spec ++++++
--- /var/tmp/diff_new_pack.8oemvY/_old  2020-08-28 21:22:30.308357517 +0200
+++ /var/tmp/diff_new_pack.8oemvY/_new  2020-08-28 21:22:30.308357517 +0200
@@ -22,7 +22,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-shaptools
-Version:        0.3.8+git.1591005605.6537616
+Version:        0.3.9+git.1598342516.94e944d
 Release:        0
 Summary:        Python tools to interact with SAP HANA utilities
 License:        Apache-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.8oemvY/_old  2020-08-28 21:22:30.348357537 +0200
+++ /var/tmp/diff_new_pack.8oemvY/_new  2020-08-28 21:22:30.348357537 +0200
@@ -5,7 +5,7 @@
     <param name="exclude">.git</param>
     <param name="filename">python-shaptools</param>
     <param name="versionformat">@PARENT_TAG@+git.%ct.%h</param>
-    <param name="revision">6537616c8664ca5e2bb466256d372ebf8664e373</param>
+    <param name="revision">94e944d708f725b958c386394a97ac3b047c5158</param>
   </service>
 
   <service name="recompress" mode="disabled">

++++++ python-shaptools-0.3.8+git.1591005605.6537616.tar.gz -> 
python-shaptools-0.3.9+git.1598342516.94e944d.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-shaptools-0.3.8+git.1591005605.6537616/python-shaptools.changes 
new/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes
--- old/python-shaptools-0.3.8+git.1591005605.6537616/python-shaptools.changes  
2020-06-01 12:00:05.000000000 +0200
+++ new/python-shaptools-0.3.9+git.1598342516.94e944d/python-shaptools.changes  
2020-08-25 10:01:56.000000000 +0200
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Tue Aug 25 06:53:29 UTC 2020 - Xabier Arbulu <[email protected]>
+
+- Create version 0.3.9
+- Fix issue when secondary registration fails after a successful
+  SSFS files copy process. Now the registration return code will
+  be checked in the new call (bsc#1175709)
+
+-------------------------------------------------------------------
 Fri Mar 27 18:15:37 UTC 2020 - Simranpal Singh <[email protected]>
 
 - Create version 0.3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/__init__.py 
new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py
--- old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/__init__.py     
2020-06-01 12:00:05.000000000 +0200
+++ new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/__init__.py     
2020-08-25 10:01:56.000000000 +0200
@@ -6,4 +6,4 @@
 :since: 2018-11-15
 """
 
-__version__ = "0.3.8"
+__version__ = "0.3.9"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/hana.py 
new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py
--- old/python-shaptools-0.3.8+git.1591005605.6537616/shaptools/hana.py 
2020-06-01 12:00:05.000000000 +0200
+++ new/python-shaptools-0.3.9+git.1598342516.94e944d/shaptools/hana.py 
2020-08-25 10:01:56.000000000 +0200
@@ -481,8 +481,7 @@
                 break
             elif return_code == self.SSFS_DIFFERENT_ERROR:
                 self.copy_ssfs_files(remote_host, primary_pass)
-                self._run_hana_command(cmd)
-                break
+                continue
             time.sleep(interval)
             current_time = time.time()
             continue
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-shaptools-0.3.8+git.1591005605.6537616/tests/hana_test.py 
new/python-shaptools-0.3.9+git.1598342516.94e944d/tests/hana_test.py
--- old/python-shaptools-0.3.8+git.1591005605.6537616/tests/hana_test.py        
2020-06-01 12:00:05.000000000 +0200
+++ new/python-shaptools-0.3.9+git.1598342516.94e944d/tests/hana_test.py        
2020-08-25 10:01:56.000000000 +0200
@@ -565,9 +565,10 @@
     def test_register_copy_ssfs(self, mock_time):
         mock_time.return_value = 0
         self._hana._run_hana_command = mock.Mock()
-        result_mock = mock.Mock(returncode=149)
+        result_error = mock.Mock(returncode=149)
+        result_good = mock.Mock(returncode=0)
         self._hana.copy_ssfs_files = mock.Mock()
-        self._hana._run_hana_command.return_value = result_mock
+        self._hana._run_hana_command.side_effect = [result_error, result_good]
         self._hana.sr_register_secondary('test', 'host', 1, 'sync', 'ops', 
primary_pass='pass')
         self._hana._run_hana_command.assert_has_calls([
             mock.call(
@@ -577,7 +578,7 @@
             mock.call(
                 'hdbnsutil -sr_register --name={} --remoteHost={} '\
                 '--remoteInstance={} --replicationMode={} 
--operationMode={}'.format(
-                'test', 'host', '01', 'sync', 'ops'))
+                'test', 'host', '01', 'sync', 'ops'), False)
         ])
         self._hana.copy_ssfs_files.assert_called_once_with('host', 'pass')
 


Reply via email to