python3.12-cryptography/plan.fmf
Lumir Balhar fcc871dac2 Improvement for the fix for CVE-2023-49083
Resolves: RHEL-17730
2024-02-07 23:01:38 +01:00

54 lines
2.2 KiB
Plaintext

execute:
how: tmt
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests - Prepare part
require:
- patch
- python3.12-pytest
- python3.12-cryptography
- python3.12-pip
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
rm -rf tests/hypothesis/ tests/test_fernet.py \
tests/hazmat/primitives/test_scrypt.py &&
cat $TMT_TREE/conftest-skipper.py >> tests/conftest.py &&
sed -i -e 's/ --benchmark-disable//' pyproject.toml &&
pip3.12 install pytz==2022.7.1 pytest-subtests==0.11.0
- name: unittests-basic
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors pytest-3.12 tests/test_*.py
- name: unittests-x509
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors OPENSSL_ENABLE_SHA1_SIGNATURES=yes pytest-3.12 tests/x509/
- name: unittests-hazmat
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors pytest-3.12 -k 'not test_openssl_memleak' tests/hazmat/backends/ tests/hazmat/bindings/
- name: unittests-primitives-aead
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors pytest-3.12 tests/hazmat/primitives/test_aead.py
- name: unittests-primitives-aes
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors pytest-3.12 tests/hazmat/primitives/test_aes.py::TestAESModeCBC \
tests/hazmat/primitives/test_aes.py::TestAESModeCTR \
tests/hazmat/primitives/test_aes_gcm.py::TestAESModeGCM
- name: unittests-primitives-a-e
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
PYTHONPATH=./vectors pytest-3.12 tests/hazmat/primitives/test_arc4.py \
tests/hazmat/primitives/test_asym_utils.py \
tests/hazmat/primitives/test_[b-e]*.py
- name: unittests-primitives-f-z
test: |
cd $(dirname $TMT_SOURCE_DIR/cryptography-*/tests) &&
patch -p1 < $TMT_TREE/raise-an-exception-for-CVE-2023-49083.patch &&
PYTHONPATH=./vectors OPENSSL_ENABLE_SHA1_SIGNATURES=yes pytest-3.12 tests/hazmat/primitives/test_[f-z]*.py \
tests/hazmat/primitives/twofactor