-
Task
-
Resolution: Unresolved
-
Critical
-
None
-
None
-
None
-
None
-
False
-
-
False
-
subs-swatch-lightning
-
-
The current rhel_els_payg longrun test contains multiple verifications within a single test. We want to split these verifications out so that we are able to check each step separately.
When all of the verifications are lumped together in a single test, a failure early on in the process will affect our ability to see an issue later in the process. By splitting them out, subsequent tests will still run after a failure and you can follow the data through the Swatch system.
Notes:
- The rhel els instance is configured to send 24 vpcu_hour/day - so 1 vcpu_hour/hour.
- We want to shorten the query time range to 12 hours instead of days
class TestRhelElsPayGLongRun:
def test_rhel_els_payg_get_prometheus_events():
def test_rhel_els_payg_get_swatch_events():
def test_rhel_els_payg_get_tally_report_for_vcpu_hours():
def test_rhel_els_payg_get_account_remittance_for_vcpu_hours():
def test_rhel_els_payg_aws_usage():
Acceptance Criteria:
- RHEL ELS Longrun Class created
- Test_verify_rhel_els_payg_aws_metering_and_billing verifications are split out
- Five separate tests checking prometheus, events, and tally, remittance and usage
- Tests are checking for record within the last 12 hrs (except AWS Usage check)
- Test_verify_rhel_els_payg_aws_metering_and_billing removed
1.
|
Create a test to check prometheus events |
|
Backlog | |
Unassigned |
2.
|
Create a test to check swatch events |
|
Backlog | |
Unassigned |
3.
|
Split test_verify_rhel_els_payg_aws_metering_and_billing |
|
Backlog | |
Unassigned |
4.
|
Delete test_verify_rhel_els_payg_aws_metering_and_billing |
|
Backlog | |
Unassigned |