Add gating tests

This commit is contained in:
mulhern 2022-02-25 22:21:07 -05:00
parent 2e9ada6e52
commit 1a1cbaa65a
3 changed files with 24 additions and 5 deletions

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View File

@ -23,8 +23,6 @@ Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-dbus-signature-pyparsing
BuildRequires: python3-dbus
%description -n python3-%{srcname} %{_description}
@ -40,9 +38,6 @@ Python 3 version.
%install
%py3_install
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest -v tests/test_deterministic.py
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
@ -50,6 +45,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest -v tests/test_d
%{python3_sitelib}/into_dbus_python-*.egg-info/
%changelog
* Fri Feb 25 2022 mulhern <amulhern@redhat.com> - 0.08.6
- Add gating tests
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

14
tests/tests.yml Normal file
View File

@ -0,0 +1,14 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: ./
run: python -m unittest -v source/tests/test_deterministic.py