From a3beee453120e56881e5052948f6787b958b2a3b Mon Sep 17 00:00:00 2001 From: Viktor Ashirov Date: Jan 27 2020 10:26:16 +0000 Subject: Issue 49761 - Fix CI test suite issues Description: Fix plugins acceptace test suite by adding a test attribute to the schema since the schema filter check can return invalid search results. Relates: https://pagure.io/389-ds-base/issue/49761 Reviewed by: mhonek (Thanks!) --- diff --git a/dirsrvtests/tests/suites/plugins/acceptance_test.py b/dirsrvtests/tests/suites/plugins/acceptance_test.py index cdb629e..c4b68e2 100644 --- a/dirsrvtests/tests/suites/plugins/acceptance_test.py +++ b/dirsrvtests/tests/suites/plugins/acceptance_test.py @@ -153,6 +153,11 @@ def test_acctpolicy(topo, args=None): ############################################################################ # Change config - change the stateAttrName to a new attribute ############################################################################ + test_attribute = "( 2.16.840.1.113719.1.1.4.1.35999 \ + NAME 'testLastLoginTime' DESC 'Test Last login time' \ + SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE USAGE \ + directoryOperation X-ORIGIN 'dirsrvtests' )" + Schema(inst).add('attributetypes', test_attribute) ap_config.replace('stateattrname', 'testLastLoginTime') ############################################################################