summaryrefslogtreecommitdiff
path: root/systemd/test
Commit message (Collapse)AuthorAgeFilesLines
* journal: convert seek_realtime argument to microsecondsZbigniew Jędrzejewski-Szmek2016-09-211-2/+16
| | | | | | | | | | | | | This somewhat breaks backwards compatibility, but not for the previously documented arguments: floats are now interpreted differently, but ints and datetime.datetime objects are interpreted the same as before. But the documentation clearly stated that only ints and datetime.datetime objects were allowed. This makes seek_realtime match seek_monotonic and other functions which take time and follows the principle of least surprise. Fixes #21.
* tests: use a context manager, skip new functions if missingZbigniew Jędrzejewski-Szmek2016-09-211-21/+16
|
* reader: add SD_JOURNAL_OS_ROOT and rework flag passingZbigniew Jędrzejewski-Szmek2016-09-211-10/+25
| | | | | | | | | | | | | | | | | Let's pass any flags through to the journal functions without checking validity. Those functions do their own checking, so there's no need to second-guess. The semantics for _Reader(flags=0) are a bit changed: before, this would be transformed into sd_journal_open(SD_J_LOCAL_ONLY). Now, this results in sd_journal_open(0). Previous behaviour should be achieved by not specifying the flags at all. This change is necessary, because previously it was not possible to pass flags=0 to sd_journal_open(0), i.e. it was not possible to "merge" journals through the Python interface. Similarly, Reader(flags=0) now means to open all journals, and Reader(flags=None) is the same as Reader(flags=LOCAL_ONLY).
* journal: allow sd_journal_open_directory_fd to be usedZbigniew Jędrzejewski-Szmek2016-09-211-0/+16
|
* tests: check enumerate_fields, has_runtime_fiels, has_persistent_filesZbigniew Jędrzejewski-Szmek2016-09-201-0/+47
|
* 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 simplistic tests for Reader matchesZbigniew Jędrzejewski-Szmek2015-09-161-1/+33
| | | | | | | It would be nice to run those tests against fake journal files with the right content to actually test the matches. But those tests are still useful because they test that the interface works as expected.
* tests: add tests for Reader initializationZbigniew Jędrzejewski-Szmek2015-09-171-0/+39
|
* tests: start adding tests for JournalHandlerZbigniew Jędrzejewski-Szmek2015-09-171-0/+34
|
* 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>.