summaryrefslogtreecommitdiffstats
path: root/awx_collection/test
diff options
context:
space:
mode:
authorElijah DeLee <kdelee@redhat.com>2023-02-23 15:00:54 +0100
committerElijah DeLee <kdelee@redhat.com>2023-03-08 18:58:12 +0100
commit2becc5dda9a226f533de9c714e25d27bffadc131 (patch)
tree4470354eabc544cb181438cd6a3db7816d13e71a /awx_collection/test
parentremoving the duplicate BulkView import (diff)
downloadawx-2becc5dda9a226f533de9c714e25d27bffadc131.tar.xz
awx-2becc5dda9a226f533de9c714e25d27bffadc131.zip
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)
Diffstat (limited to 'awx_collection/test')
-rw-r--r--awx_collection/test/awx/test_bulk.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/awx_collection/test/awx/test_bulk.py b/awx_collection/test/awx/test_bulk.py
index 842e1a997f..a0862a0473 100644
--- a/awx_collection/test/awx/test_bulk.py
+++ b/awx_collection/test/awx/test_bulk.py
@@ -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 \ No newline at end of file
+ assert h['name'] in resp_hosts