mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
add assertion to test on number of queries made (#9)
* add assertions around access to resulting job there is a problem getting the job w/ the user that launched it add more assertions to bulk tests (#11) dig more into the results and assert on results also, use a fixture that already implemented the "max queries" thing fix ansible collection sanity tests (#12)
This commit is contained in:
@@ -6,6 +6,7 @@ import pytest
|
||||
|
||||
from awx.main.models import WorkflowJob
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_bulk_job_launch(run_module, admin_user, job_template):
|
||||
jobs = [dict(unified_job_template=job_template.id)]
|
||||
@@ -39,4 +40,4 @@ def test_bulk_host_create(run_module, admin_user, inventory):
|
||||
)
|
||||
resp_hosts = inventory.hosts.all().values_list('name', flat=True)
|
||||
for h in hosts:
|
||||
assert h['name'] in resp_hosts
|
||||
assert h['name'] in resp_hosts
|
||||
|
||||
Reference in New Issue
Block a user