From 25464676551fadda30a80e40a81a51ddbd96035c Mon Sep 17 00:00:00 2001 From: Viktor Ashirov Date: Thu, 31 Aug 2017 15:12:02 +0200 Subject: [PATCH] Issue 48989 - Delete slow lib389 test Bug Description: Currently this test runs around 10-15 minutes. This is really slow. There is a cmocka test for counters in the code base: test/libslapd/counters/atomic.c We don't need to test them using lib389. Fix Description: Delete the slow test. https://pagure.io/389-ds-base/issue/48989 Reviewed by: ??? --- dirsrvtests/tests/tickets/issue48989_test.py | 57 ---------------------------- 1 file changed, 57 deletions(-) delete mode 100644 dirsrvtests/tests/tickets/issue48989_test.py diff --git a/dirsrvtests/tests/tickets/issue48989_test.py b/dirsrvtests/tests/tickets/issue48989_test.py deleted file mode 100644 index b4e7a9592..000000000 --- a/dirsrvtests/tests/tickets/issue48989_test.py +++ /dev/null @@ -1,57 +0,0 @@ -import os -import time -import ldap -import logging -import pytest -from lib389.topologies import topology_st -from lib389._constants import * -from lib389.properties import * -from lib389.tasks import * -from lib389.utils import * - -DEBUGGING = False - -if DEBUGGING: - logging.getLogger(__name__).setLevel(logging.DEBUG) -else: - logging.getLogger(__name__).setLevel(logging.INFO) -log = logging.getLogger(__name__) - - -def test_bytessent_overflow(topology_st): - """ - Issue 48989 - Add 10k entries and run search until the value of bytessent is - bigger than 2^32 or resets to 0 - """ - - # Create users - topology_st.standalone.ldclt.create_users('ou=People,%s' % - DEFAULT_SUFFIX, min=0, max=10000) - bytessent = int(topology_st.standalone.search_s( - 'cn=monitor', ldap.SCOPE_BASE, attrlist=['bytessent'])[0].getValue('bytessent')) - bytessent_old = bytessent - - while bytessent < 4300000000: - # Do searches - topology_st.standalone.search_s(DEFAULT_SUFFIX, - ldap.SCOPE_SUBTREE, - filterstr='(objectClass=*)') - - # Read bytessent value from cn=monitor - bytessent = int(topology_st.standalone.search_s( - 'cn=monitor', ldap.SCOPE_BASE, attrlist=['bytessent'])[0].getValue('bytessent')) - - if bytessent > bytessent_old: - bytessent_old = bytessent - else: - # If it overflows - test failed - assert(bytessent > 4294967295) - - -if __name__ == '__main__': - # Run isolated - # -s for DEBUG mode - CURRENT_FILE = os.path.realpath(__file__) - pytest.main("-s %s" % CURRENT_FILE) - - -- 2.13.5