Commit Graph

13 Commits

Author SHA1 Message Date
Grzegorz Grasza 462305315c Check policy when handling a HTTP request
* Add default policy for handling the create request.
* Allow it to be accessed only by nova service.
* Remove unused code copied from cinder.

Change-Id: Ieaa407f27c6774d1fd17850a9571de5554360bae
2019-01-18 11:27:09 +01:00
Grzegorz Grasza c97dccdab0 Run unit tests on Python 3.6
Run unit tests on the same Python version that the functional
tests are run. This is also the same version that FreeIPA uses.

Change-Id: I810755854c312ecb78b313b88c390b73dc476215
2018-12-03 16:38:53 +01:00
Grzegorz Grasza 85b776bc86 Run functional tests on Python 3
The functional job roles are extended with an option to specify
python version to run with and a new CI job is created.
python-memcached is added to requirements.txt, since it is used in
the default keystonemiddleware configuration.

Change-Id: I0b77b150785a90b411cba4ffc4b89cc67646e2ac
2018-11-28 06:12:32 +01:00
Grzegorz Grasza 47ce2f7136 Add functional tests to CI
Change-Id: I74f74e57f8a908f57d6b63d381b7e3af3d08e711
2018-11-20 20:01:01 +01:00
Grzegorz Grasza dd2a2c528a Add separate env for functional tests
This is a first step. New functional tests and configuration
for executing them in CI will follow.

Change-Id: Ia78582bcd1be3b05c26be6223b9ee3c79c1aec0a
2018-10-24 16:25:50 +02:00
Grzegorz Grasza 01be20f981 Run pep8 tox env with python3 interpreter
This changes the pep8 environ to run pyflakes3 and
fixes python3 compatibility errors.

Change-Id: I2a57966cd60fbc54be1f07a2505ff029ab8dda41
2018-10-24 16:16:47 +02:00
Charles Short 769ed3329b Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I36b48654747209470ac3ed2fcbc9e34e277a0445
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-10-24 14:00:31 +02:00
Rob Crittenden 839b407aab Tests: remove .testrepository/times.dbm in tox.ini
Existence of this file causes py3* tests to fail if
run after py27.  This patch adds cleaning up of this
file before running py3* tests.

Change-Id: If5d7b1f00464cf49383c572965bce84b2df7f66f
2017-09-11 20:07:05 -04:00
Ade Lee b0c0bf145a Added ability to generate config file
To generate use tox -e genconfig

Change-Id: Ie2065f822991bf308805de7788712cdc7b31d1dc
2017-01-04 12:14:30 -05:00
Juan Antonio Osorio Robles 57b17b85df Add py35 to environments in tox.ini
This will effectively run the tests with py35. Note that you might hit
issues when running this if you have previously ran tox with the py27
environment. This might be present with the error message:

    db type could not be determined

If this happens, it's a matter of removing the following file:
.testrepository/times.dbm

this issue is documented here:
https://bugs.launchpad.net/testrepository/+bug/1229445

Change-Id: I867457a30e07fad1a64111b5bf6479529e6fc19b
2016-12-09 11:03:27 +02:00
Rob Crittenden 0de474d3b0 Add testenv:venvfix, fix test so Jenkins passes
These tests are expected to run outside the context of an
available IPA server but there are still two conditions.

The first is no IPA is configured so that will be detected
and no OTP returned. In this case no OTP is returned so there
is nothing to test against.

The second is IPA is configured but there is no keytab so
no host can be added. In this case the OTP is still returned
so it can be checked at least that it matches the expected
pattern.

Change-Id: I56b59f33cca64eb90b378172af3fe0e2ef8171e3
2016-12-08 16:16:35 +00:00
Rob Crittenden 01463ed19d Add sphinx documentation 2016-11-10 14:39:41 +00:00
Rob Crittenden 87561619df Add some basic REST API testing
Mostly negative testing. There is a single positive test which can
still succeed even if IPA is not configured due to the imports test
in novajoin/ipa.py.
2016-11-10 14:39:41 +00:00