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)
2019-07-29 12:08:15 -07:00
..
action Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
cache [FactCache] define first_order_merge method (#55781) 2019-06-17 15:45:58 -07: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 Backport PR to fix ios_facts ansible_net_model (#58174) 2019-06-21 15:35:33 -07:00
connection Fix tests for the psrp connection plugin (#55061) 2019-04-10 08:22:48 +10:00
filter Correct places where match was intended 2019-07-29 12:08:15 -07:00
httpapi Add latest updates from FTD Ansible downstream repository. (#53638) 2019-04-01 18:08:01 +05:30
inventory Avoid erroring on host group confusion in keyed groups (#54099) 2019-03-25 16:57:46 -04:00
loader_fixtures Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00
lookup [2.8] Define region for aws_secret (#58722) 2019-07-17 12:11:24 -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