Commit Graph

5 Commits

Author SHA1 Message Date
Michael Krotscheck 525d5897c7
Renamed abstract_service to abstractService
Mostly because abstract_serviceTest looks weird.

Change-Id: Ia27b0e0cc70b8e4280f52f40eb78b466e358aa54
2016-09-22 07:39:42 -07:00
Michael Krotscheck abfe901b5e
AbstractService will try to detect the versions resource in more places.
We have no guarantees that the keystone service catalog will have the
root resource of any given service registered. As most versioned API
endpoints require tokens, we can reasonably assume that a 401 will
be encountered. This patch adds an extra check against the response
from the provided URL, and should a 401 be encountered, attempts
to resolve the versions from the root resource of the provided URL.

Change-Id: I655409f0eb9bfbd3489827db46faef026ede82f9
2016-09-22 07:36:39 -07:00
Corentin Ardeois 773b2b8ee3 Add more service abstraction
This patch add _requestComponents and serviceEndpoint methods to
abstract service, as these methods ared used for both Keystone and
Glance services.

Change-Id: Iccc334c0bbd79c1207855260932dab984f2d9d6c
2016-09-06 13:21:29 -04:00
Corentin Ardeois 07a5dde06c Create common service version abstraction
This patch updates common class named AbstractService to propose
common logic for multiple version negociation.

Change-Id: I999d95fca8ff01afea02ed9953c6b4a3828fa3eb
2016-09-01 14:41:51 -07:00
Michael Krotscheck acbc25ce99 Created common service abstraction
This patch creates a common class named AbstractService from which
all API classes can inherit common logic.

Change-Id: I18339ac19ed2b97a7b9b3d6a0f1e01292080c422
2016-09-01 14:40:46 -07:00