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
Toshio Kuratomi e08427a138 Correct places where match was intended
pytest.raises has two parameters, message and match.  message is meant
to be the error message that pytest gives when the tested code does not
raise the expected exception.  match is the string that pytest expects
to be a match for the repr of the exception.  Unfortunately, it seems
that message is often mistakenly used where match is meant.  Fix those
cases.

message is also deprecated so removed our usage of it.  Perhaps we
should write a sanity test later that prevents the use of
pytest.raises(message) to avoid this mistake.

seealso: https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises

Also update the exception message tested for as we're now properly
detecting that the messages have changed.

(cherry picked from commit 87601969a3)

Fix root filter test

On python-2.6 the error message is different

(cherry picked from commit 67fb3a8215)

Fix the pytest match test for python-2.6

(cherry picked from commit 8a880d6032)
6 years ago
..
action Collection content loading (#52194) 7 years ago
cache [FactCache] define first_order_merge method (#55781) 7 years ago
callback Fix for callback plugins on Python3 when a module returns dictionary keys that aren't strings 7 years ago
cliconf Backport PR to fix ios_facts ansible_net_model (#58174) 7 years ago
connection Fix tests for the psrp connection plugin (#55061) 7 years ago
filter Correct places where match was intended 6 years ago
httpapi Add latest updates from FTD Ansible downstream repository. (#53638) 7 years ago
inventory Avoid erroring on host group confusion in keyed groups (#54099) 7 years ago
loader_fixtures Don't cache duplicate plugin names (#34420) 8 years ago
lookup [2.8] Define region for aws_secret (#58722) 7 years ago
shell Add support for Windows hosts in the SSH connection plugin (#47732) 7 years ago
strategy tqm._initialize_notified_handlers() is noop now (#50713) 7 years ago
terminal Add unit tests for junos terminal (#47103) 7 years ago
vars Add empty-init code-smell script. (#18406) 9 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
test_plugins.py Misc typo fixes (#49816) 7 years ago