From 3083442cb90b126b6aca83b8445062e2721126b7 Mon Sep 17 00:00:00 2001 From: Aristeu Rozanski Date: Wed, 22 May 2024 14:12:03 -0400 Subject: [PATCH] rasdaemon: add gating for centos-stream-10 Signed-off-by: Aristeu Rozanski --- gating.yaml | 6 ++++++ tests/basic-test.sh | 3 +++ tests/tests.yml | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/basic-test.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/basic-test.sh b/tests/basic-test.sh new file mode 100644 index 0000000..8a5a90e --- /dev/null +++ b/tests/basic-test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +(systemctl start rasdaemon && systemctl status rasdaemon && ras-mc-ctl --summary && echo "PASS" && exit 0) || (echo "FAIL"; exit 1;) diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..601a7db --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic # this is a standard test role, it takes care of the test environment, logging, archiving results.. + tags: + - classic + tests: + - simple: + dir: . + run: "./basic-test.sh" # this is your test command, its exit code is the outcome of the test