History log of /sssd-io/src/tests/pyhbac-test.py
Revision Date Author Comments Expand
00f267a32a8d1c32c817eba4223c7c6d5a9d82da 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E305 pep8 issues on pyhbac-test.py E305: expected 2 blank lines after class or function definition, found 1 This issue was found on a debian_testing machine. Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

01012f0d7799008e66a2d7109b7940146dcaf68d 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E302 pep8 issues on pyhbac-test.py E302: expected 2 blank lines, found 1 Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

25e0e4b0994e59e26d4144152f564b47ec84c8ea 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E501 pep8 issues on pyhbac-test.py E501: line too long (longer than 79 characters) Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

87fe92e90c73c7b314e5c01fde623e87a37fc9d2 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix W391 pep8 issues on pyhbac-test.py W391: blank line at end of file Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

235917c1758a4dcaa859394325bb742048c46205 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E261 pep8 issues on pyhbac-test.py E261: at least two spaces before inline comment Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

8e00bbcab18b2a33437cd430607f928e32b1fdf7 10-Mar-2018 Fabiano Fidêncio <fidencio@redhat.com>

TESTS: Fix E20[12] pep8 issues on pyhbac-test.py E201: whitespace after '[' E202: whitespace before ']' Resolves: https://pagure.io/SSSD/sssd/issue/3605 Reviewed-by: Michal Židek <mzidek@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>

9e1de5c83371d91e200254cceef70852f5f94fd2 02-Feb-2016 Lukas Slebodnik <lslebodn@redhat.com>

TESTS: Fix race condition in python test Python tests for pyhbac and pysss_murmur created symbolic links in shared directory ".libs". It happened that both tests created symbolic link in the same time and therefore python2 test could try to import link to python3 module which caused failures in tests. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

41e6ed6f953a775c43a6c1c83a66ebf5f6529f22 13-Jan-2016 Jakub Hrozek <jhrozek@redhat.com>

Fix pep8 warnings in pyhbac-test.py Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

2f9b4cc993a259d408afab2cf0fec85e515424cd 13-Jan-2016 Jakub Hrozek <jhrozek@redhat.com>

tests: use unittest.TestCase.assertCountEqual if possible We used to defined a compat method for assertItemsEqual that existed on Python 2.7, but not on old Python 2.x. As an effect, we used our compat code even if assertCountEqual was available from standard library. The recent Python 3.x versions renamed assertItemsEqual to assertCountEqual. Therefore we should use the modern version which is in the standard library over a compat version provided by ourselves. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Petr Cech <pcech@redhat.com>

2b490bc947dbe0094417304840bd721417a162d9 03-Sep-2015 Pavel Reichl <preichl@redhat.com>

Remove trailing whitespace Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

4a5a18f489f4d19aa0571528a7f0c7a8d35ac83f 25-Feb-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Add possibility to build python{2,3} bindings Resolves: https://fedorahosted.org/sssd/ticket/2574 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>

e8058322725ba050014777ee2484f7e833ab1e3a 13-Feb-2015 Lukas Slebodnik <lslebodn@redhat.com>

Remove strict requirements of python2 * fix hashbangs * remove strict requirements of python2 in build system Resolves: https://fedorahosted.org/sssd/ticket/2017 Reviewed-by: Petr Viktorin <pviktori@redhat.com>

341a00311680a440d7f979f06c34c70d86c9367a 13-Jan-2015 Bohuslav Kabrda <bkabrda@redhat.com>

Python3 support in SSSD https://fedorahosted.org/sssd/ticket/2017

73b68aa708e1ffa0e0ab5b021fa93ff3a0f484b1 18-Jun-2014 Lukas Slebodnik <lslebodn@redhat.com>

Use python2 in shebang for python scripts. https://fedorahosted.org/sssd/ticket/2356 The python scripts are not tested with python3 and /usr/bin/python can be symbolic link to python3 on some distributions. Reviewed-by: Sumit Bose <sbose@redhat.com>

1e710acc5ce225c7e6aa33bc0dfe8af65f49d182 01-Aug-2011 Jakub Hrozek <jhrozek@redhat.com>

HBAC rule validation Python bindings https://fedorahosted.org/sssd/ticket/943

72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067 13-Jul-2011 Jakub Hrozek <jhrozek@redhat.com>

Fix python HBAC bindings for python <= 2.4 Several parts of the HBAC python bindings did not work with old Python versions, such as the one shipped in RHEL5. The changes include: * a compatibility wrapper around python set object * PyModule_AddIntMacro compat macro * Py_ssize_t compat definition * Do not use PyUnicode_FromFormat * several function prototypes and structures used to have "char arguments where they have "const char *" in recent versions. This caused compilation warnings this patch mitigates by using the discard_const hack on python 2.4

22d268c88f6d324b3a66846af007b06488eddae7 13-Jul-2011 Jakub Hrozek <jhrozek@redhat.com>

Fixes for python HBAC bindings These changes were proposed during a review: * Change the signature of str_concat_sequence() to const char * * use a getsetter for HbacRule.enabled to allow string true/false and integer 1/0 in addition to bool * fix a minor memory leak (HbacRequest.rule_name) * remove overzealous discard consts

667db40da4db362d7ca0a1f7f1c4ba40fb71795a 08-Jul-2011 Jakub Hrozek <jhrozek@redhat.com>

Provide python bindings for the HBAC evaluator library