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
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)
6 years ago
..
cache Update ansible-test sanity command. (#31958) 8 years ago
env Add `env` command to ansible-test and run in CI. (#50176) 7 years ago
integration [stable-2.8] Re-enable docker_container tests (#59425) 7 years ago
legacy safe_eval fix (#57188) 7 years ago
results Collect data from integration test runs. (#28650) 8 years ago
runner [stable-2.8] Move integration tests to using RHEL 8.0 GA (#57772). 7 years ago
sanity Correct a documentation of the jenkins_plugin module (#59331) 7 years ago
units Correct places where match was intended 6 years ago
utils Add Hetzner Cloud to CI integration tests. 7 years ago