From 08aaaade590e104c97a4e067f02fe5a2dc2e5627 Mon Sep 17 00:00:00 2001 From: Lukas Zachar Date: Tue, 31 Jan 2023 18:22:50 +0100 Subject: [PATCH] Add tmt gating plan Resolves: rhbz#2159317 --- .fmf/version | 1 + gating.yaml | 7 +++++++ plans/etree-fromstring.py | 7 +++++++ plans/smoke.fmf | 12 ++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/etree-fromstring.py create mode 100644 plans/smoke.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..a77f895 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy + +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans/etree-fromstring.py b/plans/etree-fromstring.py new file mode 100644 index 0000000..b400cc0 --- /dev/null +++ b/plans/etree-fromstring.py @@ -0,0 +1,7 @@ +import lxml.etree as et +s = 'ac' +x = et.fromstring(s) +t = x.find('bar').text +print(t) +if t != 'abc': + raise Exception() diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..3ac2b3d --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,12 @@ +summary: Basic smoke test +discover: + how: shell + tests: + - name: /smoke/import-python-module + test: | + python3.11 -c 'import importlib as il; print(il.import_module("lxml"))' + - name: /smoke/etree-fromstring + test: | + python3.11 plans/etree-fromstring.py +execute: + how: tmt