ansible/test/units/modules
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
..
cloud Correct places where match was intended 2019-07-18 17:10:58 -07:00
crypto New LUKS devices management module (#48991) 2019-02-15 09:25:14 +00:00
files Fixes #34893 (#40166) 2018-05-16 11:09:32 -05:00
messaging Rabbitmq user permission fixes (#49404) 2018-12-07 13:19:08 +00:00
monitoring Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
net_tools nmcli: Argument vlanid (int) is changed internally to string (#58963) 2019-07-11 18:02:02 +05:30
network PR to add Unit TC for Checkpoint network module (#57710) 2019-07-18 16:24:09 +05:30
notification Add support for hex color in slack module (#49804) 2018-12-12 08:41:49 +00:00
packaging rename rhsm_repository_release to rhsm_release (#53430) 2019-03-21 10:21:45 -05:00
remote_management Adding dell ome device_info module (#53438) 2019-06-10 06:41:48 -04:00
source_control Fix for skipping of gitlab_runner test. 2019-07-05 11:47:19 -07:00
storage New Module: Vscan Enable (#57953) 2019-07-16 13:40:56 -04:00
system java_keystore - Prefer SHA256 and solve SHA256 keytool in java11 version (#57302) 2019-07-15 12:44:30 -04:00
web_infrastructure Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
__init__.py
conftest.py fix missing attribs with dirct module execution (#53875) 2019-04-04 09:59:52 -04:00
utils.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00