You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add synthetic date generation to telemetry_chargeback role in FVT repo (#331)
Generate synthetic data and write results to a json file
Push json file to log directory so that during debug file is available for review
Controller/ci-framework-data/tests/feature-verification-tests
Do not overwrite syth data json if it already exists
Using Gemini and Cursor
Closes https://issues.redhat.com/browse/OSPRH-23746
Update the synthetic data generation process to ensure that existing JSON files are not overwritten. This change allows for better debugging by preserving previous data outputs.
Closes https://issues.redhat.com/browse/OSPRH-23746
Co-authored-by: Muneesha Yadla <myadla@redhat.com>
Copy file name to clipboardExpand all lines: roles/telemetry_chargeback/README.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@ telemetry_chargeback
2
2
=========
3
3
The **`telemetry_chargeback`** role is designed to test the **RHOSO Cloudkitty** feature. These tests are specific to the Cloudkitty feature. Tests that are not specific to this feature (e.g., standard OpenStack deployment validation, basic networking) should be added to a common role.
4
4
5
+
The role performs two main functions:
6
+
7
+
1.**CloudKitty Validation** - Enables and configures the CloudKitty hashmap rating module, then validates its state.
8
+
2.**Synthetic Data Generation** - Generates synthetic Loki log data for testing chargeback scenarios using a Python script and Jinja2 template.
9
+
5
10
Requirements
6
11
------------
7
12
It relies on the following being available on the target or control host:
@@ -10,6 +15,9 @@ It relies on the following being available on the target or control host:
10
15
* The **OpenStack CLI client** must be installed and configured with administrative credentials.
11
16
* Required Python libraries for the `openstack` CLI (e.g., `python3-openstackclient`).
12
17
* Connectivity to the OpenStack API endpoint.
18
+
***Python 3** with the following libraries for synthetic data generation:
19
+
*`PyYAML`
20
+
*`Jinja2`
13
21
14
22
It is expected to be run **after** a successful deployment and configuration of the following components:
15
23
@@ -18,12 +26,38 @@ It is expected to be run **after** a successful deployment and configuration of
18
26
19
27
Role Variables
20
28
--------------
21
-
The role uses a few primary variables to control the testing environment and execution.
29
+
The role uses the following variables to control the testing environment and execution.
0 commit comments