Add gating tmt plan
Resolves: rhbz#2159352
This commit is contained in:
parent
60e2b52885
commit
4d0f512bee
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
7
gating.yaml
Normal file
7
gating.yaml
Normal 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}
|
21
plan.fmf
Normal file
21
plan.fmf
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
dist-git-source: true
|
||||||
|
tests:
|
||||||
|
- name: bundled tests
|
||||||
|
require:
|
||||||
|
- python3.11-pytest
|
||||||
|
- python3.11-pip
|
||||||
|
# these are required by trustme
|
||||||
|
- python3.11-cryptography
|
||||||
|
- python3.11-pycparser
|
||||||
|
- python3.11-cffi
|
||||||
|
test: |
|
||||||
|
pip-3.11 install pytest-mock==3.10.0 trustme==0.9.0 pytest-httpbin==1.0.2 &&
|
||||||
|
cd $(dirname $TMT_SOURCE_DIR/requests-*/tests) &&
|
||||||
|
rm -rf requests &&
|
||||||
|
# https://github.com/postmanlabs/httpbin/issues/673#issuecomment-1150816886 \
|
||||||
|
sed -i -e 's/ import BaseResponse/ import Response as BaseResponse/' /usr/local/lib/python*/site-packages/httpbin/core.py &&
|
||||||
|
pytest-3.11 -v -p no:warnings tests
|
Loading…
Reference in New Issue
Block a user