This is an automated email from the git hooks/post-receive script.
spichugi pushed a commit to branch master
in repository 389-ds-base.
commit af11fb883739c6b421cb0a24d310b0ea4e99b393
Author: Simon Pichugin <spichugi(a)redhat.com>
Date: Tue Nov 28 15:57:46 2017 +0100
Issue 49374 - Add CI test case
Description: Add a test case to suites/config/regression_test.py.
Test that we can start the server after editing dse.ldif file
where we set nsslapd-errorlog-maxlogsize and nsslapd-errorlog-logmaxdiskspace
in a different order.
https://pagure.io/389-ds-base/issue/49374
Reviewed by: wibrown (Thanks!)
---
dirsrvtests/tests/suites/config/regression_test.py | 54 ++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/dirsrvtests/tests/suites/config/regression_test.py
b/dirsrvtests/tests/suites/config/regression_test.py
new file mode 100644
index 0000000..30824c9
--- /dev/null
+++ b/dirsrvtests/tests/suites/config/regression_test.py
@@ -0,0 +1,54 @@
+# --- BEGIN COPYRIGHT BLOCK ---
+# Copyright (C) 2017 Red Hat, Inc.
+# All rights reserved.
+#
+# License: GPL (version 3 or any later version).
+# See LICENSE for details.
+# --- END COPYRIGHT BLOCK ---
+#
+import logging
+import pytest
+from lib389.dseldif import DSEldif
+from lib389.topologies import topology_st as topo
+
+logging.getLogger(__name__).setLevel(logging.INFO)
+log = logging.getLogger(__name__)
+
+
+def test_maxbersize_repl(topo):
+ """Check that instance starts when nsslapd-errorlog-maxlogsize
+ nsslapd-errorlog-logmaxdiskspace are set in certain order
+
+ :id: 743e912c-2be4-4f5f-9c2a-93dcb18f51a0
+ :setup: MMR with two masters
+ :steps:
+ 1. Stop the instance
+ 2. Set nsslapd-errorlog-maxlogsize before/after
+ nsslapd-errorlog-logmaxdiskspace
+ 3. Start the instance
+ 4. Check the error log for errors
+ :expectedresults:
+ 1. Success
+ 2. Success
+ 3. Success
+ 4. The error log should contain no errors
+ """
+
+ inst = topo.standalone
+ dse_ldif = DSEldif(inst)
+
+ inst.stop()
+ log.info("Set nsslapd-errorlog-maxlogsize before
nsslapd-errorlog-logmaxdiskspace")
+ dse_ldif.replace('cn=config', 'nsslapd-errorlog-maxlogsize',
'300')
+ dse_ldif.replace('cn=config', 'nsslapd-errorlog-logmaxdiskspace',
'500')
+ inst.start()
+ log.info("Assert no init_dse_file errors in the error log")
+ assert not inst.ds_error_log.match('.*ERR - init_dse_file.*')
+
+ inst.stop()
+ log.info("Set nsslapd-errorlog-maxlogsize after
nsslapd-errorlog-logmaxdiskspace")
+ dse_ldif.replace('cn=config', 'nsslapd-errorlog-logmaxdiskspace',
'500')
+ dse_ldif.replace('cn=config', 'nsslapd-errorlog-maxlogsize',
'300')
+ inst.start()
+ log.info("Assert no init_dse_file errors in the error log")
+ assert not inst.ds_error_log.match('.*ERR - init_dse_file.*')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.