[PATCH] TESTS: Fix race condition in python test
by Lukas Slebodnik
ehlo,
attached patch should fix race condition in tests.
e.g.
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 71, in testImport
os.symlink("_py3sss_murmur.so", "pysss_murmur.so")
FileExistsError: [Errno 17] File exists: '_py3sss_murmur.so' -> 'pysss_murmur.so'
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 73, in testImport
os.symlink("_py2sss_murmur.so", "pysss_murmur.so")
OSError: [Errno 17] File exists
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PyHbacImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pyhbac-test.py", line 57, in testImport
os.symlink("_py2hbac.so", "pyhbac.so")
OSError: [Errno 17] File exists
----------------------------------------------------------------------
======================================================================
ERROR: testImport (__main__.PySssMurmurImport)
Import the module and assert it comes from tree
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 79, in testImport
raise e
File "/home/build/sssd/src/tests/pysss_murmur-test.py", line 76, in testImport
import pysss_murmur
ImportError: dynamic module does not define init function (PyInit_pysss_murmur)
----------------------------------------------------------------------
LS
8 years, 1 month
[PATCH] SPEC: Fix conflict with polkit
by Lukas Slebodnik
ehlo,
we (Jakub, me) didn't catch this as part of review.
I tested on minimal machine. Later I saw conflict when I was testing
latest sssd with freeipa-server.
I think we can ignore unowned directory /usr/share/polkit-1/rules.d
or we can add dependecy (soft dependency on fedora) to polkit.
LS
8 years, 1 month
[PATCH] intg: Add more LDAP tests
by Nikolai Kondrashov
Hi everyone,
Here is a patch set fixing some things in integration tests and adding more
LDAP tests:
* Adding/removing a user/group/membership with rfc2307(bis) schema.
* Filtering users/groups with rfc2307(bis) schema.
* The effect of override_homedir option.
* The effect of fallback_homedir option.
* The effect of override_shell option.
* The effect of shell_fallback option.
* The effect of default_shell option.
* The effect of vetoed_shells option.
These are pretty basic, but I think they're good for the start.
Suggestions for more tests are welcome :)
NOTE: These still break test_memory_cache.py as seen in the attached log file.
We need to figure out why and do something with it. Otherwise, the
tests work fine.
Nick
8 years, 1 month
IDMAP: Fix minor memory leak
by Pavel Reichl
Hello,
please see simple patch attached.
Memory leak is a minor problem as code is called just once for a new domain and it would occur only if run out of memory or all slices.
Thanks
8 years, 1 month