Update testing plans and gating, remove inline tests

Migrate from inline tests (tests/) to external test repository
(gitlab.com/redhat/centos-stream/tests/synce4l). The defconfig
test has been ported to beakerlib format in the test repo.

- Add .fmf/version, ci.fmf, plans.fmf
- Update gating.yaml with tier1 public/internal references
- Remove tests/ directory (moved to test repo)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
František Hrdina 2026-07-01 10:09:16 +02:00
parent 8e4ddd1d5a
commit a37b8db803
6 changed files with 58 additions and 44 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

View File

@ -1,6 +1,25 @@
--- !Policy
product_versions:
- rhel-9
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
#Rawhide
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional}
#gating rhel
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

35
plans.fmf Normal file
View File

@ -0,0 +1,35 @@
/tier1-internal:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/tier1/internal
/tier1-public:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/tier1/public
/tier2-tier3-internal:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/tier2-tier3/internal
/tier2-tier3-public:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/tier2-tier3/public
/others-internal:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/others/internal
/others-public:
plan:
import:
url: https://gitlab.com/redhat/centos-stream/tests/synce4l.git
name: /plans/others/public

View File

@ -1,33 +0,0 @@
#!/bin/bash
# Test if synce4l can parse default configuration
set -ex
# Find a nonexistent network device
i=1
while ip link show eth$i &> /dev/null; do
i=$((i + 1))
done
eth=eth$i
tmpconf=$(mktemp)
sed \
-e "s/^\[ens.*\]/\[eth$i\]/" \
-e "s|/run/synce4l_socket|/doesnotexist/synce4l_socket|" \
< /etc/synce4l.conf > "$tmpconf"
out=$(timeout -s 9 5 synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
echo "$out" | grep -q "created num_devices:"
echo "$out" | grep -q "synce_manager_server_thread Bind failed"
echo "unknownoption 1" >> "$tmpconf"
out=$(timeout -s 9 5 synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
echo "$out" | grep -q "failed to parse configuration file"
rm "$tmpconf"
exit 0

View File

@ -1,9 +0,0 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- defconfig
required_packages:
- iproute