summaryrefslogtreecommitdiff
path: root/systemd/test/test_daemon.py
Commit message (Collapse)AuthorAgeFilesLines
* test: make sure $NOTIFY_SOCKET is unset in testZbigniew Jędrzejewski-Szmek2020-11-121-0/+2
| | | | | | When running the tests in Fedora's mock, the test would fail because NOTIFY_SOCKET is set to /run/systemd/nspawn/notify, and we get a permission error.
* Added support for listen_fds_with_names()Marcel Waldvogel2019-06-161-1/+41
|
* tests: add the reproducer from #51Zbigniew Jędrzejewski-Szmek2019-06-161-0/+13
| | | | | | The example relies on implementation details, but I don't see why it wouldn't work everywhere. Let's pull it in, and if it breaks somewhere, we can remove it.
* daemon: properly skip sd_is_socket_sockaddr calls if not availableZbigniew Jędrzejewski-Szmek2017-03-191-15/+29
| | | | | As with other functions, the wrapper is always present, but returns OSError: [Errno 38] Function not implemented.
* Adjust import order, spacing, operators as recommended by pylintZbigniew Jędrzejewski-Szmek2017-03-121-11/+11
|
* Merge pull request #31 from keszybz/is_socket_sockaddrZbigniew Jędrzejewski-Szmek2017-03-111-5/+40
|\ | | | | daemon: add basic support for sd_is_socket_sockaddr
| * Fix handling of addresses without port and add testsZbigniew Jędrzejewski-Szmek2016-12-151-9/+10
| |
| * daemon: add wrapper for sd_is_socket_sockaddr and testsZbigniew Jędrzejewski-Szmek2016-12-151-5/+39
| | | | | | | | Specifying the address without does not work.
* | test_daemon: xfail test_notify_with_socket if bind() fails (#42)Mike Gilbert2017-03-111-1/+4
|/ | | | | This bind() call may fail if TMPDIR is too long. Bug: https://bugs.gentoo.org/610368
* tests: skip fdstore tests if not implementedZbigniew Jędrzejewski-Szmek2016-09-221-3/+15
| | | | Should fix #12.
* Spelling fixesVille Skyttä2016-05-211-2/+2
|
* test_daemon: Define a default value for SO_PASSCREDMike Gilbert2016-01-201-1/+3
| | | | The socket module seems to be missing this in python2.7.
* tests: mirror is-systemd-running test from systemdv231Zbigniew Jędrzejewski-Szmek2015-10-281-1/+1
|
* Python2 does not have ConnectionErrorZbigniew Jędrzejewski-Szmek2015-10-271-5/+10
|
* tests: add tests for notify()Zbigniew Jędrzejewski-Szmek2015-10-261-1/+36
|
* tests: work around bug in sd_is_mqZbigniew Jędrzejewski-Szmek2015-10-251-3/+20
| | | | The fix was committed in v226-362-g0260d1d542.
* tests: add more tests for socket functionsZbigniew Jędrzejewski-Szmek2015-09-061-1/+85
|
* tests: daemon.bootedZbigniew Jędrzejewski-Szmek2015-09-051-1/+9
|
* tests: daemon.listen_fdsZbigniew Jędrzejewski-Szmek2015-09-051-1/+26
|
* tests: add first testZbigniew Jędrzejewski-Szmek2015-08-071-0/+64
This is based on the code in https://github.com/systemd/python-systemd/pull/4 by Jacek Konieczny <j.konieczny@eggsoft.pl>.