URL: https://github.com/freeipa/freeipa/pull/6106
Author: miskopo
 Title: #6106: ipatests: test_subids: test subid-match shows UID of the owner
Action: opened

PR body:
"""
ipa subid-match should show UID of the owner instead of DN.

Related: https://pagure.io/freeipa/issue/8977

Signed-off-by: Michal Polovka <mpolo...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/6106/head:pr6106
git checkout pr6106
From b199b8a96cd1135a26487fd6b7bb6c62b4421d39 Mon Sep 17 00:00:00 2001
From: Michal Polovka <mpolo...@redhat.com>
Date: Wed, 24 Nov 2021 15:45:34 +0100
Subject: [PATCH 1/2] ipatests: test_subids: test subid-match shows UID of the
 owner

ipa subid-match should show UID of the owner instead of DN.

Related: https://pagure.io/freeipa/issue/8977

Signed-off-by: Michal Polovka <mpolo...@redhat.com>
---
 ipatests/test_integration/test_subids.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ipatests/test_integration/test_subids.py b/ipatests/test_integration/test_subids.py
index 28cd1f765cd..0b2689ec577 100644
--- a/ipatests/test_integration/test_subids.py
+++ b/ipatests/test_integration/test_subids.py
@@ -253,3 +253,17 @@ def test_idrange_subid(self):
     def test_subid_stats(self):
         tasks.kinit_admin(self.master)
         self.master.run_command(["ipa", "subid-stats"])
+
+    def test_sudid_match_shows_uid(self):
+        """
+        Test if subid-match command shows UID of the owner instead of DN
+
+        https://pagure.io/freeipa/issue/8977
+        """
+        uid = "admin"
+        result = self.subid_generate(uid)
+        info = self._parse_result(result)
+        subuid = info["ipasubuidnumber"]
+        result = self.master.run_command(["ipa", "subid-match", f"--subuid={subuid}", "--raw"])
+        owner = self._parse_result(result)["ipaowner"]
+        assert owner == uid

From 14d395c1dfe581f9e87205838bb5ece05948a063 Mon Sep 17 00:00:00 2001
From: Michal Polovka <mpolo...@redhat.com>
Date: Wed, 24 Nov 2021 15:47:26 +0100
Subject: [PATCH 2/2] temp commit

Signed-off-by: Michal Polovka <mpolo...@redhat.com>
---
 .freeipa-pr-ci.yaml                        | 2 +-
 ipatests/prci_definitions/temp_commit.yaml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.freeipa-pr-ci.yaml b/.freeipa-pr-ci.yaml
index abcf8c5b634..80656690080 120000
--- a/.freeipa-pr-ci.yaml
+++ b/.freeipa-pr-ci.yaml
@@ -1 +1 @@
-ipatests/prci_definitions/gating.yaml
\ No newline at end of file
+ipatests/prci_definitions/temp_commit.yaml
\ No newline at end of file
diff --git a/ipatests/prci_definitions/temp_commit.yaml b/ipatests/prci_definitions/temp_commit.yaml
index 4b0398b9218..322efb979a6 100644
--- a/ipatests/prci_definitions/temp_commit.yaml
+++ b/ipatests/prci_definitions/temp_commit.yaml
@@ -68,7 +68,7 @@ jobs:
       class: RunPytest
       args:
         build_url: '{fedora-latest/build_url}'
-        test_suite: test_integration/test_REPLACEME.py
+        test_suite: test_integration/test_subids.py
         template: *ci-master-latest
         timeout: 3600
-        topology: *master_1repl_1client
+        topology: *master_3client
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to