mirror of
https://github.com/ansible/awx.git
synced 2026-07-07 22:38:04 -02:30
Assure consistent ordering with default IG first (#11034)
* Assure consistent ordering with default IG first * Write conditional a little more defensively to pass tests
This commit is contained in:
@@ -301,6 +301,12 @@ def test_inherited_instance_group_membership(instance_group_factory, default_ins
|
||||
assert default_instance_group not in j.preferred_instance_groups
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_global_instance_groups_as_defaults(controlplane_instance_group, default_instance_group, job_factory):
|
||||
j = job_factory()
|
||||
assert j.preferred_instance_groups == [default_instance_group, controlplane_instance_group]
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_mixed_group_membership(instance_factory, instance_group_factory):
|
||||
for i in range(5):
|
||||
|
||||
Reference in New Issue
Block a user