This is an automated email from the git hooks/post-receive script.
vashirov pushed a commit to branch master
in repository 389-ds-base.
commit e9dd75d0a4d5a9f897b91b2c0177389fa8fd5f16
Author: Viktor Ashirov <vashirov(a)redhat.com>
Date: Thu Aug 31 15:12:02 2017 +0200
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: wibrown (Thanks!)
---
dirsrvtests/tests/tickets/issue48989_test.py | 57 ----------------------------
1 file changed, 57 deletions(-)
diff --git a/dirsrvtests/tests/tickets/issue48989_test.py
b/dirsrvtests/tests/tickets/issue48989_test.py
deleted file mode 100644
index b4e7a95..0000000
--- 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)
-
-
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.