033c21d test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules

1 file Authored by frenaud 4 years ago, Committed by abbra 4 years ago,
    test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules
    
    Test scenario:
    - create a hostgroup
    - create a host
    - create an automember rule for the hostgroup with a condition fulfilled
    by the host
    - delete the hostgroup
    - call automember-rebuild (1)
    - call automember-find-orphans to remove the orphan automember group
    - call automember-rebuild(2)
    
    The test was expecting the first rebuild command to fail but this
    assumption is not true if the DS version is >= 1.4.0.22 because of the
    fix for https://pagure.io/389-ds-base/issue/50077
    
    Modify the test so that it expects failure only when DS is older.
    
    Fixes: https://pagure.io/freeipa/issue/7902
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>