mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-30 20:01:48 -05:00
add basic job & JT analytics
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user