Add initial TMT Gating Test
This adds a TMT plan for the gating test, which will currently run a smoke tests only that are defined in the ignition upstream repository: https://github.com/coreos/ignition Verify the upstream repository PR for additional refrence: https://github.com/coreos/ignition/pull/2076 JIRA: https://issues.redhat.com/browse/COS-2284 Signed-off-by: Tiago Bueno <tbueno@redhat.com>
This commit is contained in:
parent
653de89484
commit
5c0deed278
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
@ -3,4 +3,4 @@ product_versions:
|
|||||||
- rhel-10
|
- rhel-10
|
||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} # this is the testcase identifier, which OSCI pipeline uses
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./tests/tmt/plans/smoke} # this is the testcase identifier, which OSCI pipeline uses
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- role: standard-test-basic
|
- role: standard-test-basic
|
||||||
@ -19,3 +20,4 @@
|
|||||||
- ignition-validate-rpm-installed:
|
- ignition-validate-rpm-installed:
|
||||||
dir: ./
|
dir: ./
|
||||||
run: /usr/bin/rpm -q ignition-validate
|
run: /usr/bin/rpm -q ignition-validate
|
||||||
|
|
||||||
|
16
tests/tmt/plans/main.fmf
Normal file
16
tests/tmt/plans/main.fmf
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == centos-stream or distro == fedora
|
||||||
|
prepare:
|
||||||
|
- name: Install ignition package
|
||||||
|
when: use_built_form_src is not defined or use_built_form_src == false
|
||||||
|
how: install
|
||||||
|
package: ignition
|
||||||
|
- name: Set IGNITION_BIN_DIR when installed package
|
||||||
|
when: use_built_form_src is not defined or use_built_form_src == false
|
||||||
|
how: shell
|
||||||
|
script: |
|
||||||
|
set -x -e -o pipefail
|
||||||
|
echo "IGNITION_BIN_DIR=/usr/lib/dracut/modules.d/30ignition" > /tmp/ignition_bin_dir
|
||||||
|
|
12
tests/tmt/plans/smoke.fmf
Normal file
12
tests/tmt/plans/smoke.fmf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
summary: Run gating tests
|
||||||
|
tag:
|
||||||
|
- smoke
|
||||||
|
discover:
|
||||||
|
- name: Internal gating tests
|
||||||
|
how: fmf
|
||||||
|
url: https://github.com/coreos/ignition.git
|
||||||
|
filter: 'tag: smoke'
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user