add basic job & JT analytics

This commit is contained in:
Christian Adams
2019-02-26 15:57:25 -05:00
parent c586fa9821
commit ae9377e0e4
4 changed files with 71 additions and 47 deletions

View File

@@ -7,18 +7,26 @@ from awx.main.analytics import collectors
@pytest.mark.django_db
def test_empty():
assert collectors.counts(None) == {
'organization': 0,
'team': 0,
'user': 0,
'inventory': 0,
'credential': 0,
'project': 0,
'job_template': 0,
'workflow_job_template': 0,
'host': 0,
'schedule': 0,
'custom_inventory_script': 0,
'custom_virtualenvs': 1 # dev env ansible3
"active_api_sessions": 0,
"active_channels_sessions": 0,
"active_host_count": 0,
"active_sessions": 0,
"credential": 0,
"custom_inventory_script": 0,
"custom_virtualenvs": 1, # dev env ansible3
"host": 0,
"inventory": 0,
"job_template": 0,
"normal_inventories": 0,
"notification_template": 0,
"organization": 0,
"project": 0,
"running_jobs": 0,
"schedule": 0,
"smart_inventories": 0,
"team": 0,
"user": 0,
"workflow_job_template": 0
}