adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

49ccb4d Issue 49761 - Fix CI test suite issues

Authored and Committed by sgouvern 4 years ago
    Issue 49761 - Fix CI test suite issues
    
    Problem Description:
    Random failures in test suites/plugins/rootdn_plugin_test.py.
    It may occur on slow machines that configuration changes take more or less time to be effective.
    The current static timer in the tests does not always plays its role, being difficult to set it to a reasonable and efficient value.
    
    Fix Description:
    In all possibly impacted tests, replace time.sleep() by a polling waiting for the configuration changes to be effective before attempting a bind
    Fix the get_allow_ip() and get_deny_ip() methods so that they return multiple values, rootdn-deny-ip and rootdn-allow-ip attributes being multi-valued
    
    Relates: https://pagure.io/389-ds-base/issue/49761
    
    Author: sgouvern
    
    Review by: spichugi
    
        
file modified
+2 -2