Christian Heimes
26ab51ddf4
Correct PyPI package dependencies
...
* Remove unused install requires from ipapython
* Add missing requirements to ipaserver
* Correct dependencies for yubico otptoken
* Add explicit dependency on cffi for csrgen
* Python 2 uses python-ldap, Python 3 pyldap
https://pagure.io/freeipa/issue/6875
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2017-04-26 12:31:11 +02:00
Jan Cholasta
2b33230f66
setup, pylint, spec file: drop python-nss dependency
...
Remove the unused python-nss dependency.
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2017-03-31 12:20:35 +02:00
Christian Heimes
5587a37e23
Ship ipatests.pytest_plugins.integration
...
https://pagure.io/freeipa/issue/6798
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Milan Kubik <mkubik@redhat.com >
2017-03-22 13:42:04 +01:00
Christian Heimes
fd1b4f6ec9
Add options to run only ipaclient unittests
...
A new option for ipa-run-tests makes the test runner ignore
subdirectories or skips tests that depend on the ipaserver package or on
a running framework for RPC integration tests. The new option enables
testing of client-only builds.
$ ipatests/ipa-run-tests --ipaclient-unittests
...
platform linux2 -- Python 2.7.13, pytest-2.9.2, py-1.4.32, pluggy-0.3.1
rootdir: /home/heimes/redhat, inifile: tox.ini
plugins: sourceorder-0.5, cov-2.3.0, betamax-0.7.1, multihost-1.1
collected 451 items
test_util.py ........
util.py ..
test_ipaclient/test_csrgen.py ..............ssss...
test_ipalib/test_aci.py ...................
test_ipalib/test_backend.py ........
test_ipalib/test_base.py ...............
test_ipalib/test_capabilities.py .
test_ipalib/test_cli.py ...
test_ipalib/test_config.py ...............
test_ipalib/test_crud.py ...............
test_ipalib/test_errors.py .......
test_ipalib/test_frontend.py ........................................
test_ipalib/test_messages.py ....
test_ipalib/test_output.py ...
test_ipalib/test_parameters.py .............................................................
test_ipalib/test_plugable.py ........
test_ipalib/test_rpc.py ......ssssssss
test_ipalib/test_text.py .............................
test_ipalib/test_x509.py ...
test_ipapython/test_cookie.py ............
test_ipapython/test_dn.py ...........................
test_ipapython/test_ipautil.py ..................................................................
test_ipapython/test_ipavalidate.py ..........
test_ipapython/test_kerberos.py ..............
test_ipapython/test_keyring.py ..........
test_ipapython/test_ssh.py ...............................
test_pkcs10/test_pkcs10.py .....
https://fedorahosted.org/freeipa/ticket/6517
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2017-03-17 15:02:13 +01:00
Christian Heimes
135d0b5dd1
Finish port to PyCA cryptography
...
* add missing default_backend
* unpad encrypted data
* use cryptography's hashes and HMAC construct
* remove hard dependency on python-nss from setup.py
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com >
2017-03-01 12:51:50 +01:00
Ben Lipton
a26cf0d791
tests: Add tests for CSR autogeneration
...
This patch also contains some code changes to make the code easier to
test and to make the tests pass.
https://fedorahosted.org/freeipa/ticket/4899
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2017-01-31 10:20:28 +01:00
Christian Heimes
1e06a5195b
Use pytest conftest.py and drop pytest.ini
...
Let's replace some ugly hacks with proper pytest conftest.py hooks.
Test initialization of ipalib.api is now handled in
pytest_cmdline_main(). Pytest plugins, markers and ignores are also
moved into conftest.py. Additional guards make it possible to run tests
without ipaserver installed.
I added confcutdir to ensure that pytest does not leave our project
space. Pytest used pytest.ini or setup.py before but pytest.ini is gone.
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Milan Kubik <mkubik@redhat.com >
2017-01-05 17:37:02 +01:00
Christian Heimes
ed9645b2ac
Adjustments for setup requirements
...
* Fix some typos, missing or surplus dependencies.
* Remove setup requirement on wheel since it triggers download.
ipatests is now installable. Tests need further changes to be runable.
https://fedorahosted.org/freeipa/ticket/6468
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-11-30 13:32:30 +01:00
Christian Heimes
c93bfda594
ipapython and ipatest no longer require lxml
...
Commits 64af88fe and 9fbd29cc have removed dependency on lxml.
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-11-17 11:29:28 +01:00
Christian Heimes
8346e1b067
Add install requirements to Python packages
...
https://fedorahosted.org/freeipa/ticket/6468
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-11-16 22:58:39 +01:00
Christian Heimes
91920e7cb4
Add __name__ == __main__ guards to setup.pys
...
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-10-25 18:11:31 +02:00
Christian Heimes
4cd83fb51c
Port all setup.py to setuptools
...
All setup.py files are now using setuptools through a common file
ipasetup.py. The file is auto-generated and contain all common
settings.
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-10-20 18:43:37 +02:00