From b56ed9ede5f92ae70c35a2bc02b2cdf735269f26 Mon Sep 17 00:00:00 2001
From: Florence Blanc-Renaud <flo@redhat.com>
Date: Tue, 13 Jul 2021 15:07:58 +0200
Subject: [PATCH] pr-ci definitions: add subid-related jobs

Related: https://pagure.io/freeipa/issue/8361
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
---
 .../prci_definitions/nightly_ipa-4-9_latest.yaml    | 12 ++++++++++++
 .../nightly_ipa-4-9_latest_selinux.yaml             | 13 +++++++++++++
 .../prci_definitions/nightly_ipa-4-9_previous.yaml  | 12 ++++++++++++
 3 files changed, 37 insertions(+)

diff --git a/ipatests/prci_definitions/nightly_ipa-4-9_latest.yaml b/ipatests/prci_definitions/nightly_ipa-4-9_latest.yaml
index 71803228af9..adddc4099cd 100644
--- a/ipatests/prci_definitions/nightly_ipa-4-9_latest.yaml
+++ b/ipatests/prci_definitions/nightly_ipa-4-9_latest.yaml
@@ -1689,3 +1689,15 @@ jobs:
         template: *ci-ipa-4-9-latest
         timeout: 7200
         topology: *master_1repl
+
+  fedora-latest-ipa-4-9/test_subids:
+    requires: [fedora-latest-ipa-4-9/build]
+    priority: 50
+    job:
+      class: RunPytest
+      args:
+        build_url: '{fedora-latest-ipa-4-9/build_url}'
+        test_suite: test_integration/test_subids.py
+        template: *ci-ipa-4-9-latest
+        timeout: 3600
+        topology: *master_1repl
diff --git a/ipatests/prci_definitions/nightly_ipa-4-9_latest_selinux.yaml b/ipatests/prci_definitions/nightly_ipa-4-9_latest_selinux.yaml
index 87202632f3d..f3408ef38d8 100644
--- a/ipatests/prci_definitions/nightly_ipa-4-9_latest_selinux.yaml
+++ b/ipatests/prci_definitions/nightly_ipa-4-9_latest_selinux.yaml
@@ -1823,3 +1823,16 @@ jobs:
         template: *ci-ipa-4-9-latest
         timeout: 7200
         topology: *master_1repl
+
+  fedora-latest-ipa-4-9/test_subids:
+    requires: [fedora-latest-ipa-4-9/build]
+    priority: 50
+    job:
+      class: RunPytest
+      args:
+        build_url: '{fedora-latest-ipa-4-9/build_url}'
+        selinux_enforcing: True
+        test_suite: test_integration/test_subids.py
+        template: *ci-ipa-4-9-latest
+        timeout: 3600
+        topology: *master_1repl
diff --git a/ipatests/prci_definitions/nightly_ipa-4-9_previous.yaml b/ipatests/prci_definitions/nightly_ipa-4-9_previous.yaml
index 7f8fe66c6d8..b89937aab5e 100644
--- a/ipatests/prci_definitions/nightly_ipa-4-9_previous.yaml
+++ b/ipatests/prci_definitions/nightly_ipa-4-9_previous.yaml
@@ -1689,3 +1689,15 @@ jobs:
         template: *ci-ipa-4-9-previous
         timeout: 7200
         topology: *master_1repl
+
+  fedora-previous-ipa-4-9/test_subids:
+    requires: [fedora-previous-ipa-4-9/build]
+    priority: 50
+    job:
+      class: RunPytest
+      args:
+        build_url: '{fedora-previous-ipa-4-9/build_url}'
+        test_suite: test_integration/test_subids.py
+        template: *ci-ipa-4-9-previous
+        timeout: 3600
+        topology: *master_1repl
