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/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.
5 years ago
..
cloud Correct places where match was intended 5 years ago
crypto New LUKS devices management module (#48991) 6 years ago
files Fixes #34893 (#40166) 7 years ago
messaging Rabbitmq user permission fixes (#49404) 6 years ago
monitoring Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
net_tools nmcli: Argument vlanid (int) is changed internally to string (#58963) 5 years ago
network PR to add Unit TC for Checkpoint network module (#57710) 5 years ago
notification Add support for hex color in slack module (#49804) 6 years ago
packaging rename rhsm_repository_release to rhsm_release (#53430) 6 years ago
remote_management Adding dell ome device_info module (#53438) 5 years ago
source_control Fix for skipping of gitlab_runner test. 5 years ago
storage New Module: Vscan Enable (#57953) 5 years ago
system java_keystore - Prefer SHA256 and solve SHA256 keytool in java11 version (#57302) 5 years ago
web_infrastructure Python 3.8 collections compatibility fixes. 6 years ago
__init__.py Some algorithmic unittests for the apt and docker modules 9 years ago
conftest.py fix missing attribs with dirct module execution (#53875) 6 years ago
utils.py Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago