object storage capabilities_client is stable now and good to be moved
as stable library interface.
Partially implements blueprint consistent-service-method-names
Change-Id: I06e874300a7b042ed09dc666aaeed578e814acf1
object storage bulk_middleware_client is stable now and good to be moved
as stable library interface.
Partially implements blueprint consistent-service-method-names
Change-Id: I6b44fb9a692b947baadbe049b2f7d31e4ab51035
All service clients methods return their response wrapped in
ResponseBody, ResponseBodyData or ResponseBodyList.
But object storage service clients were left out of this
because response from object storage APIs are not same way other
service return. Some APIs return is as string etc.
This commit makes capabilities_client to return ResponseBody
object with consistency to other service clients.
Also add unit tests for that.
This is step to move these clients to lib.
Partially implements blueprint consistent-service-method-names
Change-Id: Ida85033c06a50011b2cd9a86941089fb1ea7bedd
This commit adds some better documentation with an example explaining
how to use the credential providers now in tempest/lib.
Change-Id: I9f6856645094d483f7a3f0f76a40568c28c4e9b1
This commit migrates the preprovisioned credentials provider from
tempest/common into tempest/lib. As part of this 2 dependencies are
also migrated to lib: the InvalidTestResource exception class and the
tempest.common.fixed_network module.
Change-Id: Ib9e909aaaf81f7cb57e2382cec44598e918747b8
All service clients methods return their response wrapped in
ResponseBody, ResponseBodyData or ResponseBodyList.
But object storage service clients were left out of this
because response from object storage APIs are not same way other
service return. Some APIs return is as string etc.
This commit makes bulk_middleware_client to return ResponseBodyData
object with consistency to other service clients.
This is step to move these clients to lib.
Partially implements blueprint consistent-service-method-names
Change-Id: Iade0a1afd0e28ea42f12df175f55eadb1bea7071
We want to make cred providers a stable interface and move it to
lib but to do so it must not depend on modules outside of lib or
not generally stable otherwise. The last dependency left is
tempest.clients, which can be replaced by its tempest.lib
counterpart, tempest.lib.services.clients.
While clients does not depend on configuration directly, it uses
the client registry singleton. When this class is used as part of
tempest, it's populated with configuration values the first time
the CONF object is instantiated, so that Tempest configuration
values are still honoured.
When DynamicCredentialProvider is used by a consumer that does
not have a Tempest config file, all the settings defined in
__init__ will be honoured. To control more settings, the
client registry must be populated before the Credentials
Provider is used with the appropriate settings.
Change-Id: I7b262607a1fa9f67e6b1d3ec2c4cf1ccffb952a6
The only coverage we have for volume backed instances is the
test_volume_boot_pattern scenario test.
Run the test_create_server module using a volume backed instance
to add better coverage for this case.
Change-Id: Icfb68ad2a5561e9d27026443a6258bfdb7d419f0
The account generator unit tests patch the set_auth method,
however they do so in a broken way, by setting the return value:
- set_auth does not return anything
- the return value is set to a function
The only reason the unit tests work is because set_auth is actually
not invoked during the tests. So cleaning all this up.
Change-Id: Ied02c38b6a54aad2666abdaed16e454f5c7e65d1
The helpers to get parameters for the credential providers were set
up some time ago but not updated anymore, so we have now parameters
passed in get_credentials_provider directly, and some obtained
through the helpers.
Fixing this and adding some docstring. This work is in preparation
to make the module stable for plugins, so that it can be used
by test.py.
Change-Id: Ifee212277e8c1282a54b5443a51531ff731be879
My freshly created tox pep8 py3 venv was started
to complaining about the line endings:
'H903 Windows style line endings not allowed in code'
I decided to make him happy and remove the '\r'.
Change-Id: Ifbee4a88f2f91e51cb710469316c8fcf00b00eb3
test_boot_server_from_encrypted_volume_luks is expected to use
the same feature flag as the other volume encryption tests.
The encryption can be disabled also when the system does not
have suitable keymgr.
Change-Id: I4216a002e22a2392417d9f7d3055c8cdad4a9600
This patch supplements unit tests for v2 volume and snapshot manage
clients.
Partially Implements: blueprint tempest-lib-missing-test-coverage
Change-Id: I090fb17c41332840bbd7d5efaabe503fffe49bdf
Clients.py inits the orchestration client and defines and attribute
in the client manager for it. The only known consumers of attribute
are Tempest itself in the cleanup service and Murano.
I proposed a patch to Murano: Ic6fef4b4f260d13efd7b035bc012369f0da55602
The aim is to make clients stable for plugins, and I don't want the
Heat client to be in the stable interface since it's not something
that we will be supporting on Tempest side: all the Heat config
values are deprecated and will be removed during Queens.
Depends-on: Ic6fef4b4f260d13efd7b035bc012369f0da55602
Change-Id: I9f4703296a44e741cab8db6b52ba410b7dd3bed6
The test_create_server module creates a server and then it runs
multiple checks in different tests. This is done for DiskConfig
AUTO and MANUAL.
The two multinic tests however create their own server, so they
should not belong to the same class. With the current setup we
run them twice, once per DiskConfig value, which uses gate time
and resources for no clear purpose.
To fix this I'm moving these two multi nic tests to a dedicated
module.
Change-Id: I97dd4b5c703d41d9084e6e049144e4df4e3fb75d
this test will verify whether or not the catalog that it is run
against uses approved names for the services it contains. This
patch will include a few additions:
- a minimal client which will "GET" and return the service catalog,
- unit testing for the new client
- and a test that will make sure that the service catalog uses a
naming scheme that is compatible with the established governance-
approved naming scheme.
Change-Id: Ia745dff050f35cc5a3fc3744d58c6fe1e875e56f
Since there are several tests that create volume snapshot and there is
a potential to use it in other future tests, I think it's better to create
a generic method that create a volume snapshot and responsible to delete
it at the end of the test.
Change-Id: Ia78a067d6b4b729bfcc0c40d51206db6f9c4c331