You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/plugins
Pilou bbbdc1c25c throttle: fix linear based strategies (#65422)
* throttle tests: fix detection of parallel execution

The test wasn't able to detect if too many workers were running.

On my laptop:
- without this change, the 'throttle' target takes ~20 seconds
- with this change, the 'throttle' target takes ~70 seconds
- 1 second isn't long enough to encounter the issue

* Fix throttle test when strategy is 'free' based

'free' strategy allows multiple tasks to be executed in parallel: use
one 'throttledir' per task.

Use 'linear' strategy with a dedicated play for cleanup/setup tasks

* throttle: reset worker idx before queuing a new task

* TestStrategyBase: define task.throttle

otherwise '1' will be used instead of the default value due to the
following expression being equal to '1':

    int(templar.template(task_mock.throttle))

Co-authored-by: James Cammarata <jimi@sngx.net>
5 years ago
..
action become - stop using play context in more places (#62373) 5 years ago
cache Improve testing of FactCache (#55739) 5 years ago
callback Replace TestCase.assertEquals with TestCase.assertEqual. 5 years ago
cliconf Unit tests: remove unused imports (#59812) 5 years ago
connection new connection plugin aws_ssm (#49652) 5 years ago
filter Clean up flake8 for ansible.netcommon collection (#65842) 5 years ago
httpapi fix all modules to be able to get parameter with value false (very important fix) (#65040) 5 years ago
inventory Replace TestCase.assertEquals with TestCase.assertEqual. 5 years ago
loader_fixtures Don't cache duplicate plugin names (#34420) 7 years ago
lookup Fix env lookup plugin error on utf8 values (#65541) 5 years ago
shell Add support for Windows hosts in the SSH connection plugin (#47732) 6 years ago
strategy throttle: fix linear based strategies (#65422) 5 years ago
terminal Remove empty setUp/tearDown/tearDownClass methods in test classes. 5 years ago
vars Add empty-init code-smell script. (#18406) 8 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_plugins.py Remove empty setUp/tearDown/tearDownClass methods in test classes. 5 years ago