diff --git a/awx/main/tests/factories/fixtures.py b/awx/main/tests/factories/fixtures.py index 9cbdfcd288..267e5717b3 100644 --- a/awx/main/tests/factories/fixtures.py +++ b/awx/main/tests/factories/fixtures.py @@ -36,7 +36,7 @@ def mk_instance(persisted=True, hostname='instance.example.org'): return Instance.objects.get_or_create(uuid=settings.SYSTEM_UUID, hostname=hostname)[0] -def mk_instance_group(name='tower', instance=None, minimum=0, percentage=0): +def mk_instance_group(name='default', instance=None, minimum=0, percentage=0): ig, status = InstanceGroup.objects.get_or_create(name=name, policy_instance_minimum=minimum, policy_instance_percentage=percentage) if instance is not None: if type(instance) == list: diff --git a/awx/main/tests/functional/test_tasks.py b/awx/main/tests/functional/test_tasks.py index 00b31596c0..850b4709ca 100644 --- a/awx/main/tests/functional/test_tasks.py +++ b/awx/main/tests/functional/test_tasks.py @@ -35,7 +35,7 @@ class TestDependentInventoryUpdate: task.post_run_hook(proj_update, 'successful') assert not inv_update_mck.called - def test_dependent_inventory_updates(self, scm_inventory_source): + def test_dependent_inventory_updates(self, scm_inventory_source, default_instance_group): task = RunProjectUpdate() scm_inventory_source.scm_last_revision = '' proj_update = ProjectUpdate.objects.create(project=scm_inventory_source.source_project) @@ -47,7 +47,7 @@ class TestDependentInventoryUpdate: iu_run_mock.assert_called_once_with(inv_update.id) assert inv_update.source_project_update_id == proj_update.pk - def test_dependent_inventory_project_cancel(self, project, inventory): + def test_dependent_inventory_project_cancel(self, project, inventory, default_instance_group): """ Test that dependent inventory updates exhibit good behavior on cancel of the source project update