summaryrefslogtreecommitdiffstats
path: root/tests/python
Commit message (Collapse)AuthorAgeFilesLines
* Make PKIInstance and PKISubsystem hashableChristian Heimes2016-03-041-4/+11
| | | | The upgrade uses instance and subsystem as keys for dicts.
* Fedora 24 fixes for Python 3.5 and pylint 1.5Christian Heimes2016-02-291-1/+4
| | | | | | | | | | | Fedora 24 has Python 3.5 instead of Python 3.4. tox.ini now uses python3 to use any Python 3 interpreter. Python 3.5 has unittest.mock in the stdlib. Tests must attempt to import mock from unittest first. Pylint 1.5 has deprecated a couple of old options. Dogtag doesn't use the options anyway. I just removed them from dogtag.pylintrc.
* Implement total ordering for PKISubsystem and PKIInstanceChristian Heimes2016-02-261-0/+61
| | | | | | | | In Python 3 subclasses no longer implement automatic ordering. To provide ordering for sort() and custom comparison, __eq__ and __lt__ are required. https://fedorahosted.org/pki/ticket/2216
* Python 3 fix for Tomcat.get_major_version()Christian Heimes2016-02-231-0/+35
| | | | | I forgot to decode the output of subprocess.check_call(). All other places decode bytes to text properly.
* Fix flake8 / PEP 8 violationsChristian Heimes2016-01-252-5/+2
| | | | https://fedorahosted.org/pki/ticket/1738
* Add delete_ca functionality to the Python APIAde Lee2015-10-061-1/+1
|
* Python client for subcasAde Lee2015-09-271-0/+131
| | | | | | Includes python code (and unit tests!) to list, get and create subCAs. Also fixed a couple of PEP 8 violations that crept in.
* Fix encoding issue. On Python 3 requests requires bytes for json body.Christian Heimes2015-08-171-2/+24
|
* Handle JSON decode error in handle_exceptions()Christian Heimes2015-07-151-0/+65
pki.handle_exceptions() raises a JSON decode exception when the body of the HTTPException is not a valid JSON string. The JSON exception hides the true error message. The patch also fixes a bug in PKIException.from_json(). The code and ClassName attribute are now correctly set. Finally we have our first unit test. https://fedorahosted.org/pki/ticket/1488 https://fedorahosted.org/freeipa/ticket/5129