mirror of
https://github.com/ansible/awx.git
synced 2026-06-22 15:17:44 -02:30
Adding unit/functional tests, fixing tests
Making common class for LabelList Fixing related field name Fixing get_effective_slice_ct to look for corerct field and also override _eager_field
This commit is contained in:
committed by
Alan Rominger
parent
42a7866da9
commit
4f5596eb0c
@@ -78,4 +78,4 @@ class TestSlicingModels:
|
||||
# The inventory slice count will be the min of the number of nodes (4) or the job slice (2)
|
||||
assert job_template.get_effective_slice_ct({'inventory': inventory2}) == 2
|
||||
# Now we are going to pass in an override (like the prompt would) and as long as that is < host count we expect that back
|
||||
assert job_template.get_effective_slice_ct({'inventory': inventory2, 'slice_count': 3}) == 3
|
||||
assert job_template.get_effective_slice_ct({'inventory': inventory2, 'job_slice_count': 3}) == 3
|
||||
|
||||
Reference in New Issue
Block a user