Commit Graph

6 Commits

Author SHA1 Message Date
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 ed1838b7af Fix errors preventing novajoin to start on Python 3
This patch also moves the novajoin-install and novajoin-ipa-setup
scripts to the default python scripts directory. This is because
there is no other way to fixup the #! line for python3, apart from
modifying setup.py, which is managed by the global requirements repo.

Change-Id: I21ccb475905feebdb91aa158ce3845744b2f0a5f
2018-11-26 17:55:15 +01:00
Juan Antonio Osorio Robles f0a6ac4f81 Update requirements to match OpenStack's global requirements
This was done with the update-requirements tool from the requirements
repository as described in the docs [1]

[1] https://docs.openstack.org/requirements/latest/

Change-Id: I12b1d391315f377299bf9ec7b75926080ab890a8
2018-02-12 17:28:50 +02:00
Juan Antonio Osorio Robles 6ce780fc90 Add basic service and host caches
This adds two caches: one for hosts and another one for services. The
service cache also contains which hosts are managing the service.

This was done in order to reduce the calls to FreeIPA and to try to make
novajoin slightly more efficient.

Note that this was only added to the "add" functions, and the delete
functions merely update the cache. This is because checking for hosts
managing a group would require the cache to be consistent between all
the processes (and novajoin could be ran in several), and for this the
best thing would be to use a distributed cache. Being this the first
attempt, we leave this functionality out of the scope for this patch.

Change-Id: Id107000b3a667f5724331e281912560cff6f92f0
2018-02-09 17:36:28 +02:00
Juan Antonio Osorio Robles 7adf448297 Add keystomemiddleware to requirements.txt
We are now using it by default, so we should be including it here.

Change-Id: Id4ff6136569b454a70d22a9f7b46c824fa626b5a
2017-04-03 16:37:57 +03: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