Commit Graph

34 Commits

Author SHA1 Message Date
wu.chunyang e8e89be424 Add mariadb backup and replication tests
Change-Id: Iea620b256dfa037ea9780273e654850cd0a6f124
2023-11-13 10:41:09 +08:00
wu.chunyang 711b04f792 Don't create replicas2 vm in zuul
Zuul is not capable of creating 3 VM due to the lack of memory.

Change-Id: I180e7f8e4ab07998b3c0fc66fe2e316dd8d42aba
2023-11-01 11:16:41 +08:00
wu.chunyang 9122baa272 Add expect_op_status for wait_for_instance_status function.
We should wait until the instance’s status becomes healthy before
sending api requests.

Change-Id: I8f818b6278499ef420588b6bdcfd1734c5cf41d6
2023-07-24 17:29:47 +08:00
Lingxian Kong 5de39645ed Show trove guest agent log when instance creation failed
Change-Id: I8fc3b5fe5bdbbe1a9fac7c45d79d844dfde9c5b5
2021-10-11 21:32:14 +13:00
Lingxian Kong 4922ec75db Improve rebuild test
Change-Id: I8addc9eb5a6109116ff0d088c0b69d6865856970
2021-07-12 20:04:33 +12:00
Lingxian Kong 23ac0ee82b Show instance fault message when ERROR
Change-Id: Iafc98a55865a1c19464dce6fbbd683263b121186
2021-07-12 20:03:41 +12:00
Lingxian Kong 355a351fcc Move updating access test case to a separate test class
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
2020-12-07 10:14:32 +13:00
Lingxian Kong 2581bc079a Update access test
Change-Id: Ie9ff65a67bbc77c2313f3d25d9521f60286c6f96
2020-09-23 11:02:17 +12:00
Lingxian Kong fa57416207 Support PostgreSQL
Change-Id: I7b2870fb93025d9de3dad18d14fa27d6da53c6f0
2020-09-13 10:52:25 +12:00
Lingxian Kong 4624bc56c8 Disable upgrade test if not configured
Change-Id: Idf171390675f54d313306f6ad19e21f51c9c685f
2020-08-17 09:15:46 +12:00
Lingxian Kong 4e10f9e399 Add rebuild test
Change-Id: I0d59d8f8ed87867d3ba3de441132d1d19cb2bbe2
2020-08-07 10:27:50 +12:00
Lingxian Kong 5371dbbd92 Add volume resize functional test for replication
Change-Id: Id08df79f064ddf9a31247853fb19625e695f7bd0
2020-07-28 08:41:54 +12:00
Lingxian Kong 177648d906 Add config database_restore_timeout
Change-Id: I0da6b5376b4dd97606bfb75dae0fe0791cf8c47e
2020-07-16 10:57:26 +12:00
Lingxian Kong 96c552f557 Clean up object storage for test user
Change-Id: I9d7632575cabd64c69ee5511a6e38e2921e95118
2020-06-20 00:32:13 +12:00
Lingxian Kong 2970fb81dc Fix configuration test
Change-Id: I58328ebfe4932c904d6190868c4017edfb214220
2020-06-18 10:53:12 +12:00
Lingxian Kong 34e4d77b36 Move replication test to separate file
Change-Id: I78a512af4a41952a002167ef0eee5496fbd8b577
2020-06-17 22:32:49 +12:00
Lingxian Kong 00ddc03c54 Add tests: resize
Change-Id: I126c83d249f7f79b5983380b793ea85af9cf2409
2020-06-17 20:40:10 +12:00
Lingxian Kong fb79b00193 Add tests: replication
Change-Id: Ie0b6a3508043c9562ae0d4e7312402385657ec92
2020-06-17 18:16:13 +12:00
Lingxian Kong f0caa530ab Add tests: configuration
Change-Id: Id39d14c19538429a15461504c0d789269112cc22
2020-06-17 18:16:03 +12:00
Lingxian Kong 8d0e7345f9 Add tests: user management
Change-Id: Iea8d73af802de3b35cbd6e14eed7e5c12280974c
2020-06-17 18:15:51 +12:00
Lingxian Kong 6186071009 Add tests: datastore upgrade
Change-Id: Idd42169182df809232b1f2ab3bdc8e6d4289c798
2020-06-17 18:15:40 +12:00
Lingxian Kong 76a3612853 Add tests: Backup and restore
Change-Id: I52510306901157a5a87d08e845b87d5e4fce504a
2020-06-17 18:15:13 +12:00
Lingxian Kong 8f00607c97 Fix upgrade instance test
Change-Id: I20c79347cd45a2911c72a9f4361a58c419d723bb
2020-06-05 10:58:54 +12:00
Lingxian Kong d584c23352 Fix getting database address
Depends-On: https://review.opendev.org/729075
Change-Id: I9cf566796882f6d20bef212cf23b024ff5b73e5e
2020-05-24 21:50:19 +12:00
Lingxian Kong f5a0e84a59 Add instance upgrade API test
Change-Id: Ibf713328d5495dda5bbadc10592cd11a84834647
2019-12-27 18:31:25 +13:00
Lingxian Kong a5183e9312 Support HEALTHY status
Change-Id: Idb14339f8c84b45fa7ee47d95b41b4790ef5f564
2019-12-14 12:55:33 +13:00
Lingxian Kong 18e399b9e0 Improve the basic test case for mysql
Change-Id: I9202d1eaae517afc181973344b14903879fac24e
2019-12-09 16:22:22 +13:00
Lingxian Kong 605a0d3a51 Refactor trove-tempest-plugin
Depends-On: https://review.opendev.org/#/c/697870/
Story: 2006554
Task: 36639
Change-Id: I6251f070f330ee886e6436d92c20d78e0401d59e
2019-12-08 23:39:40 +13:00
Bartosz Zurkowski edc8515130 Add common base class for test cases
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>
2018-08-08 15:00:08 +02:00
Bartosz Zurkowski 36ee568e0a Make use of service clients interface
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>
2018-08-07 16:26:02 +02:00
Bartosz Zurkowski ea41b2f724 Flatten service clients and tests directories
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>
2018-08-07 10:38:10 +02:00
Bartosz Zurkowski 0dea14df86 Create base class for client to avoid code duplication
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>
2018-07-31 13:18:00 +02:00
Krzysztof Opasiak 58fe807f4b Fix deprecation warning in test_flavors.py
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>
2018-05-10 13:23:43 +02:00
Chandan Kumar 3a90c7949c Apply cookiecutter to newly split project trove-tempest-plugin
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
2017-12-11 20:15:13 +05:30