blob: fe9f4ca816a5602b04fa52abdfc154f59aaad35e [file] [log] [blame]
Andrea Frittoli (andreaf)e07579c2016-08-05 07:27:02 +01001.. _clients:
2
3Service Clients Usage
4=====================
5
6Tests make requests against APIs using service clients. Service clients are
7specializations of the ``RestClient`` class. The service clients that cover the
8APIs exposed by a service should be grouped in a service clients module.
Martin Kopecd76178e2024-01-16 20:43:56 +01009A service clients module is a Python module where all service clients are
Andrea Frittoli (andreaf)e07579c2016-08-05 07:27:02 +010010defined. If major API versions are available, submodules should be defined,
11one for each version.
12
Martin Kopecd76178e2024-01-16 20:43:56 +010013The ``ClientsFactory`` class helps to initialize all clients of a specific
Andrea Frittoli (andreaf)e07579c2016-08-05 07:27:02 +010014service client module from a set of shared parameters.
15
16The ``ServiceClients`` class provides a convenient way to get access to all
17available service clients initialized with a provided set of credentials.
18
Ken'ichi Ohmichiaca816d2017-01-27 15:12:17 -080019-----------------------------
20The clients management module
21-----------------------------
Andrea Frittoli (andreaf)e07579c2016-08-05 07:27:02 +010022
23.. automodule:: tempest.lib.services.clients
24 :members:
Ken'ichi Ohmichiaca816d2017-01-27 15:12:17 -080025
26------------------------------
27Compute service client modules
28------------------------------
29
30.. toctree::
31 :maxdepth: 2
32
33 service_clients/compute_clients