Migrate to TMT

Signed-off-by: Julien Rische <jrische@redhat.com>
This commit is contained in:
Julien Rische 2025-11-21 16:42:56 +01:00
parent e6e0f3539b
commit b5e2620d27
4 changed files with 21 additions and 25 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

9
plans/tests.fmf Normal file
View File

@ -0,0 +1,9 @@
summary: Tests
discover:
how: fmf
dist-git-source: true
prepare:
how: feature
crb: enabled
execute:
how: tmt

View File

@ -1,25 +0,0 @@
---
- 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-kdcproxy
- python3-pytest
tests:
- unittests:
dir: "source"
run: >-
rm -rf kdcproxy* &&
python3 -m pytest

11
tests/unittests/main.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Unit tests
component:
- python-kdcproxy
require:
- python3-kdcproxy
- python3-pytest
test: |
pushd "${TMT_SOURCE_DIR}/kdcproxy-"*/
python3 -m pytest
duration: 15m
enabled: true