Hello, please see simple patch attached.
>From c957a6ec5c465249238589ba2d2e17940f3d6bd7 Mon Sep 17 00:00:00 2001 From: Pavel Reichl <prei...@redhat.com> Date: Tue, 6 Oct 2015 14:37:28 -0400 Subject: [PATCH] intg: fix assert messages in test_memory_cache
--- src/tests/intg/test_memory_cache.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tests/intg/test_memory_cache.py b/src/tests/intg/test_memory_cache.py index 1f4ccb0f9c9340e42401ae732d8e5ea0dba71f0f..8b06a4aa2356845036d0e8acf298e3f04ebfc825 100644 --- a/src/tests/intg/test_memory_cache.py +++ b/src/tests/intg/test_memory_cache.py @@ -619,7 +619,7 @@ def test_invalidate_user_before_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() subprocess.call(["sss_cache", "-u", "user1"]) @@ -632,7 +632,7 @@ def test_invalidate_user_after_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() stop_sssd() @@ -645,7 +645,7 @@ def test_invalidate_users_before_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() subprocess.call(["sss_cache", "-U"]) @@ -658,7 +658,7 @@ def test_invalidate_users_after_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() stop_sssd() @@ -671,7 +671,7 @@ def test_invalidate_group_before_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() subprocess.call(["sss_cache", "-g", "group1"]) @@ -684,7 +684,7 @@ def test_invalidate_group_after_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() stop_sssd() @@ -697,7 +697,7 @@ def test_invalidate_groups_before_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() subprocess.call(["sss_cache", "-G"]) @@ -710,7 +710,7 @@ def test_invalidate_groups_after_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() stop_sssd() @@ -723,7 +723,7 @@ def test_invalidate_everything_before_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() subprocess.call(["sss_cache", "-E"]) @@ -736,7 +736,7 @@ def test_invalidate_everything_after_stop(ldap_conn, sanity_rfc2307): # initialize cache with full ID (res, errno, _) = sssd_id.get_user_groups("user1") assert res == sssd_id.NssReturnCode.SUCCESS, \ - "Could not find groups for user1 %s, %d" % errno + "Could not find groups for user1, %d" % errno assert_mc_records_for_user1() stop_sssd() -- 2.4.3
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/sssd-devel