-
Task
-
Resolution: Done
-
Major
-
None
-
False
-
-
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:
- Given a host in the `host_metrics` with `deleted` flag set to `True`
- Set it to be automated again
- Wait for it to appear in the `playbook_on_stats`
- Assert it was included in the host metrics
- Assert it has `automated_counter` set to 2
- Assert it has `deleted_counter` set to 1
- Assert `first_automation` AND `last_deleted` has a timestamp
- Assert it has `last_automation` set to `now()`
- Assert it has `deleted` set to `False`
- Assert all other fields has default value.