andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

Blame SOURCES/0012-Issue-49239-Add-a-new-CI-test-case.patch

232633
From 2f42d3575b9dd781e7d351853df984db367507af Mon Sep 17 00:00:00 2001
232633
From: Akshay Adhikari <aadhikar@redhat.com>
232633
Date: Wed, 26 Jun 2019 13:56:05 +0530
232633
Subject: [PATCH 08/12] Issue 49239 - Add a new CI test case
232633
232633
Bug Description: ds-replcheck unreliable, showing false positives, showing missing tombstone entries
232633
in the report.
232633
232633
Fix Description: Added a test case to check missing tombstone entries is not reported, also fixed
232633
py3 issue in ds-replcheck by explicitly adding bytes.
232633
232633
Relates: https://pagure.io/389-ds-base/issue/49239
232633
232633
Review by: vashirov, mreynolds (Thanks!)
232633
---
232633
 ldap/admin/src/scripts/ds-replcheck | 2 +-
232633
 1 file changed, 1 insertion(+), 1 deletion(-)
232633
232633
diff --git a/ldap/admin/src/scripts/ds-replcheck b/ldap/admin/src/scripts/ds-replcheck
232633
index 4abb417af..30bcfd65d 100755
232633
--- a/ldap/admin/src/scripts/ds-replcheck
232633
+++ b/ldap/admin/src/scripts/ds-replcheck
232633
@@ -142,7 +142,7 @@ def convert_entries(entries):
232633
             continue
232633
 
232633
         # lowercase all the objectclass values (easier for tombstone checking)
232633
-        oc_vals = new_entry.data['objectclass']
232633
+        oc_vals = ensure_list_str(new_entry.data['objectclass'])
232633
         new_oc_vals = []
232633
         for val in oc_vals:
232633
             new_oc_vals.append(val.lower())
232633
-- 
232633
2.21.0
232633