Add tmt plan for gating

Resolves: rhbz#2159365
This commit is contained in:
Lukas Zachar 2023-02-01 15:47:41 +01:00 committed by Charalampos Stratakis
parent c4045eab2f
commit 095ef781f4
3 changed files with 31 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

23
plan.fmf Normal file
View File

@ -0,0 +1,23 @@
execute:
how: tmt
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests
require:
- python3.11-pytest
- python3.11-pip
- python3.11-cryptography
- python3.11-pycparser
- python3.11-cffi
- python3.11-urllib3
test: |
pip3.11 install trustme==0.9.0 tornado==6.2 pytest-freezegun==0.4.2 &&
cd $(dirname $TMT_SOURCE_DIR/urllib3-*/test) &&
rm -rf test/appengine test/test_no_ssl.py &&
rm -rf test/with_dummyserver test/contrib &&
sed -i -e 's/^import mock/from unittest import mock/' \
-e 's/^from mock import /from unittest.mock import /' \
test/*.py docs/conf.py &&
pytest-3.11 test