From 2723b3905ef9be6bb1c1a9d1a31ef8fb3a521800 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 12 Jun 2024 14:16:21 +0200 Subject: [PATCH] Add basic tier0 smoke tests Copied from c9s. --- gating.yaml | 8 ++++++++ tests/smoke/smoke.sh | 9 +++++++++ tests/tests.yml | 12 ++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/smoke/smoke.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..00a0e2b --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: rhsmci.brew-build.tier1.functional} + diff --git a/tests/smoke/smoke.sh b/tests/smoke/smoke.sh new file mode 100755 index 0000000..ecfa0c3 --- /dev/null +++ b/tests/smoke/smoke.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e +set -o pipefail + +# Check that both PEM files are installed and these files are really PEM files +file /etc/rhsm/ca/redhat-entitlement-authority.pem | grep -q "/etc/rhsm/ca/redhat-entitlement-authority.pem: PEM certificate" +file /etc/rhsm/ca/redhat-uep.pem | grep -q "/etc/rhsm/ca/redhat-uep.pem: PEM certificate" + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f0f4410 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +--- +- hosts: localhost + tags: + - classic + - atomic + roles: + - role: standard-test-basic + tests: + - smoke: + dir: smoke + run: ./smoke.sh +