Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-testinfra for
openSUSE:Factory checked in at 2024-03-17 22:15:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-testinfra (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-testinfra.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-testinfra"
Sun Mar 17 22:15:06 2024 rev:6 rq:1158471 version:10.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-testinfra/python-pytest-testinfra.changes
2024-01-15 22:21:55.384784607 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-testinfra.new.1905/python-pytest-testinfra.changes
2024-03-17 22:15:30.595300508 +0100
@@ -1,0 +2,9 @@
+Sat Mar 16 12:58:20 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 10.1.0:
+ * [NEW] Add Interface.link property
+ * [FIX] Make file properties follow symlinks
+ * [FIX] Require pytest>=6 and use future annotations for
+ pytest<7 compatibility
+
+-------------------------------------------------------------------
Old:
----
pytest-testinfra-10.0.0.tar.gz
New:
----
pytest-testinfra-10.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-testinfra.spec ++++++
--- /var/tmp/diff_new_pack.VlYDgt/_old 2024-03-17 22:15:31.571336315 +0100
+++ /var/tmp/diff_new_pack.VlYDgt/_new 2024-03-17 22:15:31.571336315 +0100
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-pytest-testinfra
-Version: 10.0.0
+Version: 10.1.0
Release: 0
Summary: Python module to test infrastructures
License: Apache-2.0
@@ -37,7 +37,7 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-salt
-Requires: python-pytest
+Requires: python-pytest >= 6.0
Provides: python-testinfra = %{version}-%{release}
Obsoletes: python-testinfra < %{version}-%{release}
BuildArch: noarch
++++++ pytest-testinfra-10.0.0.tar.gz -> pytest-testinfra-10.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-testinfra-10.0.0/CHANGELOG.rst
new/pytest-testinfra-10.1.0/CHANGELOG.rst
--- old/pytest-testinfra-10.0.0/CHANGELOG.rst 2023-11-13 18:16:57.000000000
+0100
+++ new/pytest-testinfra-10.1.0/CHANGELOG.rst 2024-02-15 06:02:21.000000000
+0100
@@ -2,6 +2,27 @@
Changelog
=========
+10.1.0
+======
+
+* [NEW] Add Interface.link property
+* [FIX] Make file properties follow symlinks
+* [FIX] Require pytest>=6 and use future annotations for pytest<7 compatibility
+
+10.0.0
+======
+
+* [FIX] Ansible: Fix for missing group names in get_variables()
+* [FIX] testinfra/modules/blockdevice: Don't fail on stderr
+* [DOC] Extend and show the documentation of CommandResult
+* [FIX] Extend list of valid suffixes for systemd units
+* [DOC] Add missing Environment doc section
+* [MISC] Define types for plugin.py
+* [FIX] Missing RHEL distribution in package module
+* [NEW] Add brew support in package module
+* [NEW] Add Service.exists
+* [MISC] Make CommandResult a dataclass
+
9.0.0
=====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-testinfra-10.0.0/PKG-INFO
new/pytest-testinfra-10.1.0/PKG-INFO
--- old/pytest-testinfra-10.0.0/PKG-INFO 2023-11-13 18:17:10.107154000
+0100
+++ new/pytest-testinfra-10.1.0/PKG-INFO 2024-02-15 06:02:35.177928700
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-testinfra
-Version: 10.0.0
+Version: 10.1.0
Summary: Test infrastructures
Home-page: https://github.com/pytest-dev/pytest-testinfra
Author: Philippe Pepiot
@@ -24,7 +24,7 @@
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
-Requires-Dist: pytest!=3.0.2
+Requires-Dist: pytest>=6
Provides-Extra: ansible
Requires-Dist: ansible; extra == "ansible"
Provides-Extra: docker
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-testinfra-10.0.0/pytest_testinfra.egg-info/PKG-INFO
new/pytest-testinfra-10.1.0/pytest_testinfra.egg-info/PKG-INFO
--- old/pytest-testinfra-10.0.0/pytest_testinfra.egg-info/PKG-INFO
2023-11-13 18:17:10.000000000 +0100
+++ new/pytest-testinfra-10.1.0/pytest_testinfra.egg-info/PKG-INFO
2024-02-15 06:02:35.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-testinfra
-Version: 10.0.0
+Version: 10.1.0
Summary: Test infrastructures
Home-page: https://github.com/pytest-dev/pytest-testinfra
Author: Philippe Pepiot
@@ -24,7 +24,7 @@
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
-Requires-Dist: pytest!=3.0.2
+Requires-Dist: pytest>=6
Provides-Extra: ansible
Requires-Dist: ansible; extra == "ansible"
Provides-Extra: docker
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-testinfra-10.0.0/pytest_testinfra.egg-info/requires.txt
new/pytest-testinfra-10.1.0/pytest_testinfra.egg-info/requires.txt
--- old/pytest-testinfra-10.0.0/pytest_testinfra.egg-info/requires.txt
2023-11-13 18:17:10.000000000 +0100
+++ new/pytest-testinfra-10.1.0/pytest_testinfra.egg-info/requires.txt
2024-02-15 06:02:35.000000000 +0100
@@ -1,4 +1,4 @@
-pytest!=3.0.2
+pytest>=6
[ansible]
ansible
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-testinfra-10.0.0/setup.cfg
new/pytest-testinfra-10.1.0/setup.cfg
--- old/pytest-testinfra-10.0.0/setup.cfg 2023-11-13 18:17:10.107154000
+0100
+++ new/pytest-testinfra-10.1.0/setup.cfg 2024-02-15 06:02:35.177928700
+0100
@@ -32,7 +32,7 @@
setup_requires =
setuptools_scm
install_requires =
- pytest!=3.0.2
+ pytest>=6
extras_require =
[options.extras_require]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-testinfra-10.0.0/testinfra/modules/file.py
new/pytest-testinfra-10.1.0/testinfra/modules/file.py
--- old/pytest-testinfra-10.0.0/testinfra/modules/file.py 2023-11-13
18:16:57.000000000 +0100
+++ new/pytest-testinfra-10.1.0/testinfra/modules/file.py 2024-02-15
06:02:21.000000000 +0100
@@ -223,38 +223,38 @@
class GNUFile(File):
@property
def user(self):
- return self.check_output("stat -c %%U %s", self.path)
+ return self.check_output("stat -Lc %%U %s", self.path)
@property
def uid(self):
- return int(self.check_output("stat -c %%u %s", self.path))
+ return int(self.check_output("stat -Lc %%u %s", self.path))
@property
def group(self):
- return self.check_output("stat -c %%G %s", self.path)
+ return self.check_output("stat -Lc %%G %s", self.path)
@property
def gid(self):
- return int(self.check_output("stat -c %%g %s", self.path))
+ return int(self.check_output("stat -Lc %%g %s", self.path))
@property
def mode(self):
# Supply a base of 8 when parsing an octal integer
# e.g. int('644', 8) -> 420
- return int(self.check_output("stat -c %%a %s", self.path), 8)
+ return int(self.check_output("stat -Lc %%a %s", self.path), 8)
@property
def mtime(self):
- ts = self.check_output("stat -c %%Y %s", self.path)
+ ts = self.check_output("stat -Lc %%Y %s", self.path)
return datetime.datetime.fromtimestamp(float(ts))
@property
def size(self):
- return int(self.check_output("stat -c %%s %s", self.path))
+ return int(self.check_output("stat -Lc %%s %s", self.path))
@property
def inode(self):
- return int(self.check_output("stat -c %%i %s", self.path))
+ return int(self.check_output("stat -Lc %%i %s", self.path))
@property
def md5sum(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-testinfra-10.0.0/testinfra/modules/interface.py
new/pytest-testinfra-10.1.0/testinfra/modules/interface.py
--- old/pytest-testinfra-10.0.0/testinfra/modules/interface.py 2023-11-13
18:16:57.000000000 +0100
+++ new/pytest-testinfra-10.1.0/testinfra/modules/interface.py 2024-02-15
06:02:21.000000000 +0100
@@ -51,6 +51,26 @@
"""
raise NotImplementedError
+ @property
+ def link(self):
+ """Return the link properties associated with the interface.
+
+ >>> host.interface("lo").link
+ {'address': '00:00:00:00:00:00',
+ 'broadcast': '00:00:00:00:00:00',
+ 'flags': ['LOOPBACK', 'UP', 'LOWER_UP'],
+ 'group': 'default',
+ 'ifindex': 1,
+ 'ifname': 'lo',
+ 'link_type': 'loopback',
+ 'linkmode': 'DEFAULT',
+ 'mtu': 65536,
+ 'operstate': 'UNKNOWN',
+ 'qdisc': 'noqueue',
+ 'txqlen': 1000}
+ """
+ raise NotImplementedError
+
def routes(self, scope=None):
"""Return the routes associated with the interface, optionally
filtered by scope
("host", "link" or "global").
@@ -132,6 +152,12 @@
addrs.append(splitted[1].split("/", 1)[0])
return addrs
+ @property
+ def link(self):
+ return json.loads(
+ self.check_output(f"{self._ip} --json link show %s", self.name)
+ )
+
def routes(self, scope=None):
cmd = f"{self._ip} --json route list dev %s"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-testinfra-10.0.0/testinfra/plugin.py
new/pytest-testinfra-10.1.0/testinfra/plugin.py
--- old/pytest-testinfra-10.0.0/testinfra/plugin.py 2023-11-13
18:16:57.000000000 +0100
+++ new/pytest-testinfra-10.1.0/testinfra/plugin.py 2024-02-15
06:02:21.000000000 +0100
@@ -10,6 +10,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import annotations
+
import logging
import shutil
import sys