Pedro Henrique 3961dcddb8 Adapt tests to new rating API
With the introduction of start and end dates in the rating rules, the
update of rating rules for both mappings and pyscripts was
disabled as well as the deletion. In the new versions the
rating rules can be disabled instead of deleted so it is possible
to track all changes in the rating rules.

We are accepting both results for the tests, the old behavior and
the new one. We had to do it to keep stable branches pipeline
working, otherwise old stable versions pipeline would fail for
this new validation. As soon as the support for release 2024.1
ends, we can remove the old versions validation and keep only the
new one.

Change-Id: Idf632f229e2bc2a52eb24c138477f1b70f7fe936
Depends-On: https://review.opendev.org/c/openstack/cloudkitty-tempest-plugin/+/925736
Signed-off-by: Pedro Henrique <phpm13@gmail.com>
2025-08-18 15:03:41 -03:00
2017-11-08 15:40:34 +01:00
2017-11-08 15:40:34 +01:00
2019-04-19 19:43:08 +00:00
2017-11-08 15:40:34 +01:00
2017-11-08 15:40:34 +01:00
2025-05-29 17:25:57 +09:00
2017-11-08 15:40:34 +01:00
2018-10-17 04:03:05 -04:00
2017-11-08 15:40:34 +01:00
2024-02-14 13:44:14 +00:00
2024-10-25 15:18:23 -07:00
2023-05-26 14:35:14 +08:00
2025-01-21 11:05:47 +01:00

Tempest integration of CloudKitty

This project defines a tempest plugin containing tests used to verify the functionality of a cloudkitty installation. The plugin will automatically load these tests into tempest.

Dependencies

This plugin tests the CloudKitty API. This supposes that the 'rating' role exists in your OpenStack installation.

Developers

For more information on cloudkitty, refer to: https://docs.openstack.org/cloudkitty/latest/

For more information on tempest plugins, refer to: https://docs.openstack.org/tempest/latest/#using-plugins

Bugs

Please report bugs to: https://storyboard.openstack.org/#!/project/890

Installing

Clone this repository and call from the repo:

$ pip install -e .

Running the tests

To run all the tests from this plugin, call from the tempest repo:

$ cd <Tempest Directory>
$ tox -e all -- cloudkitty_tempest_plugin

To run a single test case, call with full path, for example:

$ cd <Tempest Directory>
$ tox -e all -- cloudkitty_tempest_plugin.tests.api.test_cloudkitty_api.CloudkittyAdminAPITest.test_get_collector_mappings

To retrieve a list of all tempest tests, run:

$ cd <Tempest Directory>
$ testr list-tests
Description
Tempest plugin for the CloudKitty project.
Readme 551 KiB
Languages
Python 100%