Uploaded image for project: 'Automation Analytics'
  1. Automation Analytics
  2. AA-1609

QE: Utility tool: positive test - soft delete host

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.4
    • None
    • QE
    • False
    • Hide

      None

      Show
      None
    • False
    • ANSTRAT-268 - Utility for collecting ansible usage data
    • Sprint ending March 22, 2023, Sprint ending April 19, 2023

      need to check that soft deleting a host update both tables (HostMetric & playbook_on_stats) with right values

       

      steps:

      1.  Given a host in the `host_metrics` with `deleted` flag set to `True`
      2.  Set it to be automated again
      3.  Wait for it to appear in the `playbook_on_stats`
      4.  Assert it was included in the host metrics
      5.  Assert it has `automated_counter` set to 2
      6.  Assert it has `deleted_counter` set to 1
      7.  Assert `first_automation` AND `last_deleted` has a timestamp
      8.  Assert it has `last_automation` set to `now()`
      9.  Assert it has `deleted` set to `False`
      10.  Assert all other fields has default value.

              rhn-support-orhochma Or Hochmann
              rhn-support-orhochma Or Hochmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: