ansible/test/units/plugins
Toshio Kuratomi 87601969a3 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.
2019-07-18 17:10:58 -07:00
..
action Templar: encapsulate _available_variables (#55435) 2019-05-20 11:49:54 -04:00
cache Improve testing of FactCache (#55739) 2019-06-10 16:26:24 -04:00
callback Fix for callback plugins on Python3 when a module returns dictionary keys that aren't strings 2018-12-04 23:03:48 -08:00
cliconf Fix ios test for python2 non-ascii paths 2019-06-21 11:32:28 -07:00
connection Fix netconf guess_network_os to use ssh_config if supplied. (#55199) 2019-06-21 09:04:13 +05:30
filter Correct places where match was intended 2019-07-18 17:10:58 -07:00
httpapi Add latest updates from FTD Ansible downstream repository. (#53638) 2019-04-01 18:08:01 +05:30
inventory add IAM role assumption to aws_ec2 inventory (#41637) 2019-06-18 15:34:41 -07:00
loader_fixtures
lookup Skip tests with unsatisfied deps (#55853) 2019-06-28 13:09:36 -07:00
shell Add support for Windows hosts in the SSH connection plugin (#47732) 2019-03-07 16:38:02 -08:00
strategy tqm._initialize_notified_handlers() is noop now (#50713) 2019-01-09 10:15:11 -05:00
terminal Add unit tests for junos terminal (#47103) 2018-10-16 15:14:38 +05:30
vars
__init__.py
test_plugins.py Misc typo fixes (#49816) 2018-12-14 15:12:58 +05:30