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/cloud
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
..
amazon Correct places where match was intended 5 years ago
cloudstack Skip tests with unsatisfied deps (#55853) 5 years ago
docker docker_* modules: improve error message when docker-py is missing (#57914) 5 years ago
google GCP deprecations (#53355) 6 years ago
kubevirt kubevirt: even more unit tests (#58593) 5 years ago
linode Linode: Mark 'name' as required. Fixes #29785 (#44699) 6 years ago
linode_v4 Add new linode_v4 module. (#46151) 6 years ago
misc Terraform: Fix unbound local error (#57044) 5 years ago
openstack Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
vmware VMware: Unit test for vmware_guest (#50140) 6 years ago
xenserver Rename xenserver_guest_facts -> xenserver_guest_info (#57032) 5 years ago
__init__.py Relocate module unit tests. (#18812) 8 years ago