3 Commits

Author SHA1 Message Date
Martin Kopec
6e2bf36c2b Filter deprecated versions out
* api_v2 version of volume service and api_v1 version
  of image service are deprecated, but were discovered
  and set to True.
* The patch fixes that by checking the status of the
  version.
* The patch also adds a deprecated version to fake
  services, which are used by unit tests.
* For backward compatibility of python-tempestconf with
  older relesies of OpenStack, the patch doesn't remove
  deprecated versions (they're not deprecated in Pike
  and older)

Change-Id: I88312d6425ad7bdc132b9b6dbe03c0c07349515c
2018-05-17 11:29:08 +00:00
Martin Kopec
60a62b7dd2 Enable discovering of mistral service
This patch gives python-tempestconf ability to discover
mistral service.

Change-Id: I2789e2d5cab1d4e9ba871fea39ede24a2872b1eb
2018-04-30 15:00:11 +00:00
Martin Kopec
0e085cdf85 Refactor to improve modularity, scalability, OOP
* each service class was moved to a new file
* Service and VersionedService were moved from api_discovery to service_base.py
* api_discovery.py is removed and methods for discovery were moved to a newly
  created class Services - class holds methods related to instantiating
  services, discovering their versions and extensions, configuring them
* constants were moved to an independent file - constants.py

Change-Id: I00880f4bd30cc4d1609c20aecca820854312b1e7
2018-04-16 14:48:14 +00:00