feat: add OSCI gating plan for subscription-manager

Add TMT plan for OSCI-triggered Testing Farm gating. Discovers tests
from rhsm-qe via fmf, uses double-clone pattern for prepare scripts,
and vault-based secrets via rhsm-qe .testing-farm.yaml.

Related: CCT-1831

Assisted-by: goose (AI agent)
This commit is contained in:
James Molet 2026-08-10 10:12:31 -04:00
parent f6ed5f1ad0
commit e1cd334ac3
No known key found for this signature in database
3 changed files with 64 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -4,5 +4,5 @@ product_versions:
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/integration.functional}
- !PassingTestCaseRule {test_case_name: rhsmci.brew-build.cloud.functional}

62
plans/integration.fmf Normal file
View File

@ -0,0 +1,62 @@
summary: subscription-manager integration tests (OSCI gating)
description: |
Runs the rhsm-qe TestNG gating suite against a self-managed containerized
Candlepin server. Tests are discovered from the rhsm-qe repository.
Prepare scripts are invoked from a manual clone because TMT does not
execute a remote plan's prepare steps when using discover: how: fmf.
This is the same pattern used for yggdrasil dist-git gating.
See also: https://gitlab.cee.redhat.com/RHSM-QE/rhsm-qe/-/blob/main/plans/rhsm.fmf
discover:
how: fmf
url: https://gitlab.cee.redhat.com/RHSM-QE/rhsm-qe.git
ref: main
prepare:
- name: Clone rhsm-qe for prepare scripts
how: shell
script: |
git clone --depth=1 -b main https://gitlab.cee.redhat.com/RHSM-QE/rhsm-qe.git /tmp/rhsm-qe
- name: Install dependencies
how: shell
script: /tmp/rhsm-qe/scripts/tmt/install-deps.sh
- name: Setup localhost SSH access
how: shell
script: /tmp/rhsm-qe/scripts/tmt/setup-localhost-ssh.sh
- name: Setup rhsm-qe
how: shell
script: /tmp/rhsm-qe/scripts/tmt/setup-rhsm-qe.sh
- name: Install subscription-manager
how: shell
script: /tmp/rhsm-qe/scripts/tmt/install-subscription-manager.sh
- name: Setup service credentials
how: shell
script: /tmp/rhsm-qe/scripts/tmt/setup-credentials.sh
- name: Generate automation.properties
how: shell
script: /tmp/rhsm-qe/scripts/tmt/generate-properties.sh
- name: Create test-output directory
how: shell
script: mkdir -p "${AUTOMATION_DIR}/test-output"
execute:
how: tmt
provision:
hardware:
memory: ">= 8 GB"
environment:
AUTOMATION_DIR: ${TMT_PLAN_DATA}/rhsm-qe
SERVER_ENVIRONMENT: containerized
TESTNG_SUITE: sm-gating-testng-suite.xml
GATED: "true"