From 5bd53029c0b7e3e2bdc647f6f229aa547803965f Mon Sep 17 00:00:00 2001
From: koncpa <pkoncity@redhat.com>
Date: Mon, 27 May 2024 12:52:04 +0200
Subject: [PATCH] Enable RHEL gating for libestr

Resolves: RHEL-38771

Signed-off-by: Patrik Koncity <pkoncity@redhat.com>
---
 .fmf/version |  1 +
 ci_tests.fmf | 17 +++++++++++++++++
 gating.yaml  |  6 ++++++
 3 files changed, 24 insertions(+)
 create mode 100644 .fmf/version
 create mode 100644 ci_tests.fmf
 create mode 100644 gating.yaml

diff --git a/.fmf/version b/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/ci_tests.fmf b/ci_tests.fmf
new file mode 100644
index 0000000..6868708
--- /dev/null
+++ b/ci_tests.fmf
@@ -0,0 +1,17 @@
+/e2e:
+  plan:
+    import:
+      url: https://github.com/RedHat-SP-Security/rsyslog-plans.git
+      name: /generic/e2e_ci
+
+/rpmverify:
+  summary: rpmverify test
+  execute:
+      how: tmt
+  discover:
+    - name: test
+      how: shell
+      tests:
+        - name: rpmverify
+          test: 'rpmverify $(rpm -qa | grep libestr)'
+          duration: 2m
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}