From 734ee87c6f2bcb27010369b062dbc795fb7f6fc7 Mon Sep 17 00:00:00 2001 From: Sudhir Menon Date: Wed, 26 Jun 2024 15:40:00 +0530 Subject: [PATCH] Added gating.yaml and tests for python-jwcrypto Signed-off-by: Sudhir Menon --- gating.yaml | 7 +++++++ tests/tests.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..122483d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +# recipients: abokovoy, frenaud, kaleem, ftrivino, cheimes +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8ad07dc --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,26 @@ +--- +- hosts: localhost + tags: + - classic + pre_tasks: + - name: Enable CRB for python3-pytest on 1minutetip + ini_file: + path: /etc/yum.repos.d/rhel.repo + section: rhel-CRB + option: enabled + value: "1" + create: no + ignore_errors: yes + roles: + - role: standard-test-source + - role: standard-test-basic + required_packages: + - python3-jwcrypto + - python3-pytest + tests: + - unittests: + dir: "source" + # remove jwcrypto Python files to run tests with packages code + run: >- + rm -rf jwcrypto/j*.py jwcrypto/__init__.py jwcrypto/__pycache__ && + python3 -m pytest jwcrypto/test*.py