Updating access will change the instance public address, which affects other
test cases in the same test class.
Enable more tests in this patch.
Added some test cases which always failed in CI in tempest blacklist file.
Story: 2008410
Task: 41351
Change-Id: I09b4f00da941b7ead5a93c4c41b196cbe9934bbe
Adds a base class that includes parts common to API and scenario tests.
Change-Id: I1485228520d641d94bf9a1f5c7bbb2a306b63bf2
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
This change makes use of features provided by stable "ServiceClients"
interface that has been available in Tempest for some time. The
interface enhances tests with a convenient way to access available
service clients.
When a plugin uses "ServiceClients" interface, all stable Tempest
clients and all clients exposed by installed plugins will be
automatically available and pre-configured. Instead of explicitly
specifying parameters, such as "auth_provider", "build_timeout", etc.,
all these parameters will be read from the Tempest configuration and
then installed automatically in the clients.
Plugin adaptation was carried out in accordance with the requirements
described in Tempest documentation[1] and inspired by changes introduced
in other plugins[2][3].
[1] https://docs.openstack.org/tempest/latest/plugin.html#service-clients
[2] https://review.openstack.org/#/c/338486/
[3] https://review.openstack.org/#/c/334596/
Change-Id: I0fbb12fb93f4411f23d95d54d8d5a7904a372333
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
Looking at the structuring of service clients among Tempest plugins,
almost none of them places clients in "json" subfolder. Similarly,
almost none of the plugins places tests for different APIs into
individual directories such as: flavors, limits etc.. In particular,
such conventions do not occur in the Tempest repository, on which
plugins should be modeled.
This change reorganizes plugin directories in order to comply with
Tempest standards.
Change-Id: I7c967f70a10b9cab5d29c9d6b961f6e36d6eb600
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
Implementing listing or showing resource in every client leads to
a lot of duplicated code. This change adds a base client class
which implements common helpers.
Removes "Database" prefix from class names and "db" infix
from method signatures for alignment with standards from the rest
of the community.
Also, adds doseq option by URL encoding to handle sequence field
values.
Change-Id: I580405e2cb8a15e5735ae413ad2186c620f018bc
Co-Authored-By: Przemyslaw Godek <p.godek@partner.samsung.com>
Co-Authored-By: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
As function tempest.test.services() has been moved to
tempest.common.utils.services() in Pike, currently when we run
trove-tempest-plugin we get ugly warning:
DeprecationWarning: Function 'tempest.test.services()' has moved
to 'tempest.common.utils.services()' in version 'Pike' and will
be removed in a future version
Let's remove it by simply using new name of that function.
Change-Id: Ia4981c0c9eec1ae2655e25d9baba44e283b2450c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This tempest plugin is being split out of the main trove project in
accordance with Queens goal "Split Tempest Plugins into Separate
Repos/Projects"[1]. This patch applies the standard boilerplate files
for OpenStack projects so that it can stand on its own.
[1] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html