Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-4103

Refactor test_verify_rhel_els_payg_aws_metering_and_billing

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 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

              Unassigned Unassigned
              lburnett0 Lindsey Burnett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: