From 068f9052c442f119ea4bddfa54911be8282da7f6 Mon Sep 17 00:00:00 2001 From: William Brown Date: Wed, 22 Feb 2017 15:21:00 +1000 Subject: [PATCH] Ticket 49142 - bytes vs unicode in plugin tests Bug Description: In some cases on RHEL7 the plugin_tests can fail due to the diff with bytes and unicode.This is because the test uses the legacy backend manager that is not updated for modern python Fix Description: Swap the test to the new backend manager that does handle this. https://pagure.io/389-ds-base/issue/49142 Author: wibrown Review by: ??? --- dirsrvtests/tests/suites/dynamic-plugins/plugin_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dirsrvtests/tests/suites/dynamic-plugins/plugin_tests.py b/dirsrvtests/tests/suites/dynamic-plugins/plugin_tests.py index 1ae1034..0cbc54b 100644 --- a/dirsrvtests/tests/suites/dynamic-plugins/plugin_tests.py +++ b/dirsrvtests/tests/suites/dynamic-plugins/plugin_tests.py @@ -1789,8 +1789,10 @@ def test_passthru(inst, args=None): passthru_inst.open() # Create a second backend - passthru_inst.backend.create(PASS_SUFFIX2, {BACKEND_NAME: PASS_BE2}) - passthru_inst.mappingtree.create(PASS_SUFFIX2, bename=PASS_BE2) + passthru_inst.backends.create(None, properties={ + BACKEND_NAME: PASS_BE2, + 'suffix': PASS_SUFFIX2, + }) # Create the top of the tree try: -- 1.8.3.1