Bug Description: Investigate and port TET matching rules filter tests(indexing more test cases)
Relates: https://pagure.io/389-ds-base/issue/48851
Author: aborah
Reviewed by: ???
DSLdapObjects.create() function returns DSLdapObject instance. So why not reuse it later in the code? It will be a huge cleanup.
DSLdapObjects.create()
DSLdapObject
Why do you use mode['attr'].split('attr')[1] instead of mode['attr'] where mode['attr'] = 'attribute_name_without_attr_prefix'? It'll make much more sense to just add attr prefix when needed.
mode['attr'].split('attr')[1]
mode['attr']
mode['attr'] = 'attribute_name_without_attr_prefix'
attr
Also, I just noticed, you named the test suite without _test suffix. So it is not discoverable by py.test automatically.
_test
Please, rename it. Also, you already have filter_match_test.py. So maybe filter_index_match_test.py?
filter_match_test.py
filter_index_match_test.py
And please, if you use something more then once and it is a complex expression (some operation) - remember to assign it to a variable. And then reuse the variable. It increases readability.
1 new commit added
Fixing Simon's comments
Done
Also, I just noticed, you named the test suite without _test suffix. So it is not discoverable by py.test automatically. Please, rename it. Also, you already have filter_match_test.py. So maybe filter_index_match_test.py?
rebased onto e4dfcab3d66e4d8ae41563a4c1be015a85bcb67b
rebased onto aae66da963c678f7f418dba1580d8f585d083740
rebased onto f6bd667d7f7c41b22b03452b4b22e01112a828e4
LGTM! Ack
Pull-Request has been merged by spichugi
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This pull request has been cloned to Github as issue and is available here: - https://github.com/389ds/389-ds-base/issues/3596
If you want to continue to work on the PR, please navigate to the github issue, download the patch from the attachments and file a new pull request.
Thank you for understanding. We apologize for all inconvenience.
Pull-Request has been closed by spichugi
Bug Description: Investigate and port TET matching rules filter tests(indexing more test cases)
Relates: https://pagure.io/389-ds-base/issue/48851
Author: aborah
Reviewed by: ???