|
|
b2d430 |
From 6eb330b5370db40a55d18de2d932601d6b3128b2 Mon Sep 17 00:00:00 2001
|
|
|
b2d430 |
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
|
|
|
b2d430 |
Date: Mon, 12 Sep 2016 19:25:13 +0200
|
|
|
b2d430 |
Subject: [PATCH 138/140] TESTS: sss_groupshow with MPG
|
|
|
b2d430 |
MIME-Version: 1.0
|
|
|
b2d430 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b2d430 |
Content-Transfer-Encoding: 8bit
|
|
|
b2d430 |
|
|
|
b2d430 |
Regression test for ticket #3184
|
|
|
b2d430 |
|
|
|
b2d430 |
Resolves:
|
|
|
b2d430 |
https://fedorahosted.org/sssd/ticket/3184
|
|
|
b2d430 |
|
|
|
b2d430 |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
b2d430 |
(cherry picked from commit bb14556c1df503314644fc424fbbf95759791db9)
|
|
|
b2d430 |
---
|
|
|
b2d430 |
src/tests/intg/test_local_domain.py | 22 ++++++++++++++++++++++
|
|
|
b2d430 |
1 file changed, 22 insertions(+)
|
|
|
b2d430 |
|
|
|
b2d430 |
diff --git a/src/tests/intg/test_local_domain.py b/src/tests/intg/test_local_domain.py
|
|
|
b2d430 |
index b34e4a3d31cdbc1dc257d8fffcf0f5a07803b20c..8e1d6fb2b69f5e6e033ae06d4bd52cc88e54872b 100644
|
|
|
b2d430 |
--- a/src/tests/intg/test_local_domain.py
|
|
|
b2d430 |
+++ b/src/tests/intg/test_local_domain.py
|
|
|
b2d430 |
@@ -118,6 +118,28 @@ def assert_nonexistent_group(name):
|
|
|
b2d430 |
grp.getgrnam(name)
|
|
|
b2d430 |
|
|
|
b2d430 |
|
|
|
b2d430 |
+def test_groupshow_mpg(local_domain_only):
|
|
|
b2d430 |
+ """
|
|
|
b2d430 |
+ Regression test for ticket
|
|
|
b2d430 |
+ https://fedorahosted.org/sssd/ticket/3184
|
|
|
b2d430 |
+ """
|
|
|
b2d430 |
+ subprocess.check_call(["sss_useradd", "foo", "-M"])
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+ # The user's mpg has to be found (should return 0)
|
|
|
b2d430 |
+ subprocess.check_call(["sss_groupshow", "foo"])
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+def test_groupshow_mpg_fqdn(local_domain_only_fqdn):
|
|
|
b2d430 |
+ """
|
|
|
b2d430 |
+ Regression test for ticket (fq variant)
|
|
|
b2d430 |
+ https://fedorahosted.org/sssd/ticket/3184
|
|
|
b2d430 |
+ """
|
|
|
b2d430 |
+ subprocess.check_call(["sss_useradd", "foo@LOCAL", "-M"])
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+ # The user's mpg has to be found (should return 0)
|
|
|
b2d430 |
+ subprocess.check_call(["sss_groupshow", "foo@LOCAL"])
|
|
|
b2d430 |
+
|
|
|
b2d430 |
+
|
|
|
b2d430 |
def test_wrong_LC_ALL(local_domain_only):
|
|
|
b2d430 |
"""
|
|
|
b2d430 |
Regression test for ticket
|
|
|
b2d430 |
--
|
|
|
b2d430 |
2.7.4
|
|
|
b2d430 |
|