From 7ffb0c4f4d1b1abbf53f0d04ca77eb2278d2696d9382c8d2b3b99a92fc8053f7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 15 Jan 2024 14:11:32 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=2010.0.0:=20=20=20*=20[FIX]=20F?= =?UTF-8?q?ix=20output=20of=20error=20message=20=20=20*=20[FIX]=20Ansible:?= =?UTF-8?q?=20Fix=20for=20missing=20group=20names=20in=20get=5Fvariables()?= =?UTF-8?q?=20=20=20*=20[FIX]=20testinfra/modules/blockdevice:=20Don't=20f?= =?UTF-8?q?ail=20on=20stderr=20=20=20*=20[DOC]=20Extend=20and=20show=20the?= =?UTF-8?q?=20documentation=20of=20CommandResult=20=20=20*=20[FIX]=20Exten?= =?UTF-8?q?d=20list=20of=20valid=20suffixes=20for=20systemd=20units=20=20?= =?UTF-8?q?=20*=20[DOC]=20Add=20missing=20Environment=20doc=20section=20?= =?UTF-8?q?=20=20*=20[MISC]=20Define=20types=20for=20plugin.py=20=20=20*?= =?UTF-8?q?=20[MISC]=20Bump=20actions/checkout=20from=203=20to=204=20=20?= =?UTF-8?q?=20*=20[FIX]=20Missing=20RHEL=20distribution=20in=20package=20m?= =?UTF-8?q?odule=20=20=20*=20[NEW]=20feat(package):=20brew=20support=20=20?= =?UTF-8?q?=20*=20[NEW]=20Add=20Service.exists=20=20=20*=20[MISC]=20Make?= =?UTF-8?q?=20CommandResult=20a=20dataclass=20-=20update=20to=209.0.0:=20?= =?UTF-8?q?=20=20*=20[BREAKING]=20pytest-testinfra=20now=20require=20pytho?= =?UTF-8?q?n=20>=3D=203.9=20=20=20*=20[BREAKING]=20Drop=20deprecated=20mod?= =?UTF-8?q?ule=20PipPackage=20=20=20*=20[NEW]=20Add=20support=20for=20the?= =?UTF-8?q?=20SSH=20ControlPath=20connection=20sharing=20=20=20=20=20optio?= =?UTF-8?q?n=20=20=20*=20[FIX]=20Retry=20SSH=20on=20ConnectionResetError?= =?UTF-8?q?=20=20=20*=20[FIX]=20List=20openSUSE=20Leap=20and=20Tumbleweed?= =?UTF-8?q?=20explicitly=20as=20rpm=20=20=20=20=20based=20distributions=20?= =?UTF-8?q?=20=20*=20[FIX]=20Make=20group=20name=20mandatory=20in=20group?= =?UTF-8?q?=20module=20=20=20to=20skip=20salt=20backend=20and=20still=20te?= =?UTF-8?q?st=20the=20rest.=20=20=20*=20Add=20arch=20(architecture)=20attr?= =?UTF-8?q?ibute=20to=20system=5Finfo=20module=20=20=20*=20Add=20a=20new?= =?UTF-8?q?=20ansible=20connection=20options=20=E2=80=9Cforce=5Fansible?= =?UTF-8?q?=E2=80=9D,=20when=20set=20=20=20=20=20to=20True,=20testinfra=20?= =?UTF-8?q?will=20always=20call=20ansible=20for=20all=20commands=20=20=20*?= =?UTF-8?q?=20Handle=20all=20ansible=20connections=20types=20by=20setting?= =?UTF-8?q?=20force=5Fansible=3DTrue=20=20=20=20=20for=20connections=20whi?= =?UTF-8?q?ch=20doesn=E2=80=99t=20have=20a=20testinfra=20equivalent=20conn?= =?UTF-8?q?ection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-testinfra?expand=0&rev=12 --- pytest-testinfra-10.0.0.tar.gz | 3 ++ pytest-testinfra-8.1.0.tar.gz | 3 -- python-pytest-testinfra.changes | 38 +++++++++++++++++++---- python-pytest-testinfra.spec | 4 +-- testinfra-parametrize-backends-test.patch | 10 +++--- 5 files changed, 43 insertions(+), 15 deletions(-) create mode 100644 pytest-testinfra-10.0.0.tar.gz delete mode 100644 pytest-testinfra-8.1.0.tar.gz diff --git a/pytest-testinfra-10.0.0.tar.gz b/pytest-testinfra-10.0.0.tar.gz new file mode 100644 index 0000000..3688a0e --- /dev/null +++ b/pytest-testinfra-10.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fb7d0185458a9ba669ff14d0ddbec8b3900c6bde3fb6fad9b097374ce4ab77d +size 84667 diff --git a/pytest-testinfra-8.1.0.tar.gz b/pytest-testinfra-8.1.0.tar.gz deleted file mode 100644 index 83e137b..0000000 --- a/pytest-testinfra-8.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b40828b58fb7ac2bff29cc1465934adf434f10dd5a108f60535dee52660a63d -size 84156 diff --git a/python-pytest-testinfra.changes b/python-pytest-testinfra.changes index ccd842f..0b50222 100644 --- a/python-pytest-testinfra.changes +++ b/python-pytest-testinfra.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon Jan 15 14:11:05 UTC 2024 - Dirk Müller + +- update to 10.0.0: + * [FIX] Fix output of error message + * [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 + * [MISC] Bump actions/checkout from 3 to 4 + * [FIX] Missing RHEL distribution in package module + * [NEW] feat(package): brew support + * [NEW] Add Service.exists + * [MISC] Make CommandResult a dataclass +- update to 9.0.0: + * [BREAKING] pytest-testinfra now require python >= 3.9 + * [BREAKING] Drop deprecated module PipPackage + * [NEW] Add support for the SSH ControlPath connection sharing + option + * [FIX] Retry SSH on ConnectionResetError + * [FIX] List openSUSE Leap and Tumbleweed explicitly as rpm + based distributions + * [FIX] Make group name mandatory in group module + ------------------------------------------------------------------- Mon May 22 04:16:57 UTC 2023 - Georg Pfuetzenreuter @@ -87,7 +113,7 @@ Mon Apr 26 18:16:40 UTC 2021 - Ben Greiner the transition, but you should rename to pytest-testinfra in your requirements files. - Add testinfra-parametrize-backends-test.patch in order to be able - to skip salt backend and still test the rest. + to skip salt backend and still test the rest. (All docker tests are skipped automatically, because no there is no docker host running.) - Ignore upstream test-requirements.txt version pins: @@ -102,7 +128,7 @@ Fri Jul 3 06:02:57 UTC 2020 - Steve Kowalik * Allow kubeconfig context to be supplied in kubernetes backend * Drop file.__ne__ implementation and require python >= 3.5 * Use remote_user and remote_port in ansible.cfg - * Add arch (architecture) attribute to system_info module + * Add arch (architecture) attribute to system_info module ------------------------------------------------------------------- Wed Mar 11 11:31:39 UTC 2020 - pgajdos@suse.com @@ -144,11 +170,11 @@ Wed Aug 28 12:26:12 UTC 2019 - Marketa Calabkova - update to version 3.1.0 * ssh connections uses persistent connections by default. * ansible ssh connections now use ssh backend instead of paramiko. - * Add a new ansible connection options “force_ansible”, when set - to True, testinfra will always call ansible for all commands + * Add a new ansible connection options “force_ansible”, when set + to True, testinfra will always call ansible for all commands he need to run. - * Handle all ansible connections types by setting force_ansible=True - for connections which doesn’t have a testinfra equivalent connection + * Handle all ansible connections types by setting force_ansible=True + for connections which doesn’t have a testinfra equivalent connection (for example “network_cli”). ------------------------------------------------------------------- diff --git a/python-pytest-testinfra.spec b/python-pytest-testinfra.spec index 07d7300..d3f80f7 100644 --- a/python-pytest-testinfra.spec +++ b/python-pytest-testinfra.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-testinfra # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pytest-testinfra -Version: 8.1.0 +Version: 10.0.0 Release: 0 Summary: Python module to test infrastructures License: Apache-2.0 diff --git a/testinfra-parametrize-backends-test.patch b/testinfra-parametrize-backends-test.patch index 3c81066..ed8f0a9 100644 --- a/testinfra-parametrize-backends-test.patch +++ b/testinfra-parametrize-backends-test.patch @@ -1,6 +1,8 @@ ---- a/test/test_backends.py 2023-05-21 17:38:00.000000000 +0200 -+++ b/test/test_backends.py 2023-05-22 06:22:56.491195059 +0200 -@@ -476,13 +476,13 @@ +Index: pytest-testinfra-10.0.0/test/test_backends.py +=================================================================== +--- pytest-testinfra-10.0.0.orig/test/test_backends.py ++++ pytest-testinfra-10.0.0/test/test_backends.py +@@ -476,13 +476,13 @@ def test_ansible_unknown_option(): with pytest.raises(KeyError, match="^'unknown'$"): runner.options_to_cli({"unknown": True}) @@ -18,4 +20,4 @@ + assert obj.get_connection_type() == connection_type - @pytest.mark.testinfra_hosts("docker://rockylinux8", "ssh://rockylinux8") + @pytest.mark.testinfra_hosts("docker://rockylinux9", "ssh://rockylinux9")