4 Commits

Author SHA256 Message Date
77b83db8eb Accepting request 1272353 from devel:languages:python:pytest
- Update to 1.0.4:
  * Reverting requirements in base.txt to those of 1.0.1
- 1.0.3:
  * Remove support for DSA
- 1.0.2:
  * Updated requirements and actions
  * Limit to Python 3.10, since that is the only version supported for
    currently supported Salt onedir architecture
  * Adjusted requirements versions for various dependencies
  * Updated GitHub Actions for recent EOL of Python 3.7 and 3.8, using
    Salt 3006.9 and 3007.1, also use of psutil.AccessDenied
- 1.0.1:
  * Properly configure the SSHD server when FIPS is enabled/enforced
    on a system (#179)
- Skip some tests failing with python > 3.11

OBS-URL: https://build.opensuse.org/request/show/1272353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-salt-factories?expand=0&rev=4
2025-04-24 15:26:40 +00:00
49cd97d2ac OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-salt-factories?expand=0&rev=12 2025-04-24 09:33:02 +00:00
0bfefc5779 - Disable some more flaky tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-salt-factories?expand=0&rev=11
2025-04-24 09:31:19 +00:00
6e72a42317 - Update to 1.0.4:
* Reverting requirements in base.txt to those of 1.0.1
- 1.0.3:
  * Remove support for DSA
- 1.0.2:
  * Updated requirements and actions
  * Limit to Python 3.10, since that is the only version supported for
    currently supported Salt onedir architecture
  * Adjusted requirements versions for various dependencies
  * Updated GitHub Actions for recent EOL of Python 3.7 and 3.8, using
    Salt 3006.9 and 3007.1, also use of psutil.AccessDenied
- 1.0.1:
  * Properly configure the SSHD server when FIPS is enabled/enforced
    on a system (#179)
- Skip some tests failing with python > 3.11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-salt-factories?expand=0&rev=10
2025-04-24 07:13:43 +00:00
4 changed files with 60 additions and 15 deletions

BIN
pytest-salt-factories-1.0.0rc27.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pytest_salt_factories-1.0.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Thu Apr 10 11:22:32 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 1.0.4:
* Reverting requirements in base.txt to those of 1.0.1
- 1.0.3:
* Remove support for DSA
- 1.0.2:
* Updated requirements and actions
* Limit to Python 3.10, since that is the only version supported for
currently supported Salt onedir architecture
* Adjusted requirements versions for various dependencies
* Updated GitHub Actions for recent EOL of Python 3.7 and 3.8, using
Salt 3006.9 and 3007.1, also use of psutil.AccessDenied
- 1.0.1:
* Properly configure the SSHD server when FIPS is enabled/enforced
on a system (#179)
- Skip some tests failing with python > 3.11
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 20 05:29:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Wed Mar 20 05:29:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-salt-factories # spec file for package python-pytest-salt-factories
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,38 +16,43 @@
# #
%define _version 1.0.0 %define _version 1.0.4
%define _rc_version rc27
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
%bcond_without libalternatives %bcond_without libalternatives
%else %else
%bcond_with libalternatives %bcond_with libalternatives
%endif %endif
Name: python-pytest-salt-factories Name: python-pytest-salt-factories
Version: %{_version}~%{_rc_version} Version: %{_version}
Release: 0 Release: 0
Summary: A pytest plugin for testing Salt Summary: A pytest plugin for testing Salt
License: Apache-2.0 License: Apache-2.0
URL: https://pytest-salt-factories.readthedocs.io/en/latest/ URL: https://pytest-salt-factories.readthedocs.io/en/latest/
Source0: https://files.pythonhosted.org/packages/source/p/pytest-salt-factories/pytest-salt-factories-%{_version}%{_rc_version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/p/pytest-salt-factories/pytest_salt_factories-%{_version}.tar.gz
# PATCH-FIX-OPENSUSE fix_unit_tests.patch this patch is removing the workaround in the unit test implementation so the test can pass when using our openSUSE Salt 3006.0 package # PATCH-FIX-OPENSUSE fix_unit_tests.patch this patch is removing the workaround in the unit test implementation so the test can pass when using our openSUSE Salt 3006.0 package
Patch1: fix_unit_tests.patch Patch1: fix_unit_tests.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module docker} BuildRequires: %{python_module docker}
BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module msgpack}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6.0.0} BuildRequires: %{python_module pytest >= 6.0.0}
BuildRequires: %{python_module pytest-shell-utilities} BuildRequires: %{python_module pytest-shell-utilities}
BuildRequires: %{python_module pytest-subtests} BuildRequires: %{python_module pytest-subtests}
BuildRequires: %{python_module pytest-system-statistics} BuildRequires: %{python_module pytest-system-statistics}
BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module salt}
BuildRequires: %{python_module setuptools >= 50.3.2} BuildRequires: %{python_module setuptools >= 50.3.2}
BuildRequires: %{python_module setuptools-declarative-requirements} BuildRequires: %{python_module setuptools-declarative-requirements}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-salt
BuildRequires: salt-master BuildRequires: salt-master
Requires: python-PyYAML
Requires: python-attrs >= 19.2.0 Requires: python-attrs >= 19.2.0
Requires: python-msgpack Requires: python-msgpack
Requires: python-psutil Requires: python-psutil
@@ -72,8 +77,7 @@ Requires(postun): update-alternatives
A pytest plugin for testing Salt. A pytest plugin for testing Salt.
%prep %prep
%setup -q -n pytest-salt-factories-%{_version}%{_rc_version} %autosetup -p1 -n pytest_salt_factories-%{_version}
%autopatch -p1
%build %build
%pyproject_wheel %pyproject_wheel
@@ -85,10 +89,31 @@ A pytest plugin for testing Salt.
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{python_sitelib}
# Run test and exclude some that doesn't work fine in OBS. # Run test and exclude some that doesn't work fine in OBS.
pytest-%{python_bin_suffix} -vvv -k 'not ssh and not echoext' donttest="ssh or echoext"
# Flaky tests for aarch64, ppc, arm
donttest+=" or test_all_messages_received"
# All these tests are failing with python >3.11
# tests/integration/factories/cli/test_salt.py::test_merged_json_out
# tests/integration/factories/cli/test_salt.py::test_merged_json_out_disabled
python312_donttest=" or test_merged_json_out or test_merged_json_out_disabled"
# tests/integration/factories/daemons/master/test_master.py::test_salt_cp_minion_id_as_first_argument
python312_donttest+=" or test_salt_cp_minion_id_as_first_argument"
# tests/integration/factories/daemons/master/test_master.py::test_salt_cp_explicit_minion_tgt
python312_donttest+=" or test_salt_cp_explicit_minion_tgt"
# tests/integration/factories/daemons/minion/test_minion.py::test_minion
python312_donttest+=" or test_minion"
# tests/integration/factories/daemons/minion/test_minion.py::test_show_jid
# tests/integration/factories/daemons/proxy/test_proxy_minion.py::test_show_jid
python312_donttest+=" or test_show_jid"
# tests/integration/factories/daemons/proxy/test_proxy_minion.py::test_proxy_minion
python312_donttest+=" or test_proxy_minion"
# tests/integration/utils/saltext/test_log_handlers.py::test_logs_forwarded_from_sub_processes
python312_donttest+=" or test_logs_forwarded_from_sub_processes"
python313_donttest=$python312_donttest
%pytest -k "not ($donttest ${$python_donttest})" ${$python_ignore}
%post %post
%python_install_alternative salt-factories %python_install_alternative salt-factories
@@ -100,7 +125,7 @@ pytest-%{python_bin_suffix} -vvv -k 'not ssh and not echoext'
%license LICENSE %license LICENSE
%doc README.rst CHANGELOG.rst %doc README.rst CHANGELOG.rst
%{python_sitelib}/saltfactories %{python_sitelib}/saltfactories
%{python_sitelib}/pytest_salt_factories-%{_version}%{_rc_version}*-info %{python_sitelib}/pytest_salt_factories-%{_version}*-info
%python_alternative %{_bindir}/salt-factories %python_alternative %{_bindir}/salt-factories
%changelog %changelog