7 Commits

Author SHA1 Message Date
Ken'ichi Ohmichi
aca816da20 Enable sphinx on servers_client
servers_client is most useful client for testing, but the docstring was
not enabled on the site. So this patch makes it enabled.

Change-Id: I031de923deab74bc0f84cff52f470ab233b7dbba
2017-02-10 10:47:27 -08:00
Frédéric Guillot
8160f08882 Fix typo in documentation
Change-Id: If8ff20ff77e5bbe1497faee45c9ef6401b1e5921
2016-11-25 10:41:04 -05:00
Andrea Frittoli (andreaf)
e07579c603 Migrate service_clients to tempest.lib
Migrate the service_clients module to tempest.lib.services.clients.
Migrate related unit tests as well.

The clients module atm imports plugin.py from Tempest which is not
allowed via hacking to avoid cirtular dependencies.
If there is no way around this, I will have to remove the self
registration of the service clients from plugins, and ask the
plugins to do the registration themselves - which is a pity. Ideas?

Change-Id: I40e3478f69af62a7cdc14fa65ed21dcfbbe10e72
2016-08-05 16:23:26 +01:00
Andrea Frittoli (andreaf)
3e82af7f6c Introduce scope in the auth API
Adding the ability to select the scope of the authentication.
When using identity v3, this makes it possible to use either
project scope or domain scope regardless of whether a project
is included or not in the Credentials object.

The interface to auth for most tests is the AuthProvider.
The scope is defined in the constructor of the AuthProvider,
and it can also be changed at a later time via 'set_scope'.

In most cases a set of credentials will use the same scope.
Test credentials will use project scope. Admin test credentials
may use domain scope on identity API alls, or project scope on
other APIs. Since clients are initialised with an auth provider
by the client manager, we extend the client manager interface to
include the scope. Tests and Tempest parts that require a domain
scoped token will instanciate the relevant client manager with
scope == 'domain', or set the scope to domain on the 'auth_provider'.

The default scope in the v3 auth provider is 'projet;, which me must
do for backward compatibility reasons (besides it's what most tests
expects. We also filter the list of attributes based on scope, so
that tests or service clients may request a different scope.

The original behaviour of the token client is unchanged:
all fields passed to it towards the API server. This
maintains backward compatibility, and leaves full control
for test that want to define what is sent in the token
request.

Closes-bug: #1475359
Change-Id: I6fad6dd48a4d306f69da27c6793de687bbf72add
2016-05-24 14:11:14 +00:00
ghanshyam
c3b0b8b499 Trivial: Fix some document comments in microversion
This is follow up patch to fix doc comments left in
Icbdcfb4cd5b7fb1029eec035b9e0024be59c8d1f

Change-Id: Iebdbfd62d1db4088e7e356aae700b74c17888415
2016-03-17 02:44:45 +00:00
Ghanshyam
1f47cf976b Migrated microversion testing framework to tempest/lib
Tempest implements the microversion testing support and
that framework and interfaces have been tested by implementing
the Compute 2.2 microversion as well as by their unit tests.

Those should be stable interfaces so that can be consumed by other
projects microversion testing either in tempest or outside tempest.

To make them as stable interface, this commit moving that framework and
its interfaces to tempest/lib folder.

Adding release notes and library doc for those interface.

Partially implements blueprint api-microversions-testing-support

Change-Id: Icbdcfb4cd5b7fb1029eec035b9e0024be59c8d1f
2016-03-11 08:17:15 +00:00
Matthew Treinish
55511d98f1
Add documentation for the library interface
This commit adds documentation for the library interface, formerly
known as tempest-lib, and the release versioning.

Partially implements bp tempest-lib-reintegration

Change-Id: I623222a17fe3563bbe767fa803e8f771a21687a1
2016-02-29 15:35:26 -05:00