Bug Description: There have been many cases of incorrect and
invalid api usage. As we go on, we can't allow more usage of
these apis to be added as it only puts more work on us in
the future to remove.
Fix Description: Add deprecation warnings to these apis, telling
people they will be removed, and where their faulty code is.
warnings.warn(DeprecationWarning("Use of raw ldap function %s. This will removed in a future release. Found in: %s:%s"%(name,frame.filename,frame.lineno)))/usr/lib/python3.7/site-packages/lib389-1.4.0.1-py3.7.egg/lib389/__init__.py:156:DeprecationWarning:Useofrawldapfunctionrename_s.Thiswillremovedinafuturerelease.Foundin:/home/william/development/389ds/ds/dirsrvtests/tests/suites/basic/basic_test.py:191
Additionally, this change demonstrates an example of the kind of error it can detect and pick up - use of the old, invalid importLDIF in basic tests.
Bug Description: There have been many cases of incorrect and
invalid api usage. As we go on, we can't allow more usage of
these apis to be added as it only puts more work on us in
the future to remove.
Fix Description: Add deprecation warnings to these apis, telling
people they will be removed, and where their faulty code is.
https://pagure.io/389-ds-base/issue/50224
Author: William Brown william@blackhats.net.au
An example of this warning:
Additionally, this change demonstrates an example of the kind of error it can detect and pick up - use of the old, invalid importLDIF in basic tests.