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
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)
7 years ago
..
cli Remove unused internal -a argument and functionality (#52602) 7 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
config Fix encoding issues with file paths. (#50830) 7 years ago
contrib Fix vmware_inventory unit tests so they run. 7 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 7 years ago
executor Move type checking methods out of basic.py and add unit tests (#53687) 7 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
module_utils [stable-2.8] Handle situation where ansible_architecure may not be defined when gathering facts (#55466) 7 years ago
modules Correct places where match was intended 7 years ago
parsing Correct places where match was intended 7 years ago
playbook Don't pollute include_variables (#54687) 7 years ago
plugins Correct places where match was intended 7 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 7 years ago
template Native Jinja2: raise undefined error immediately (#52237) 7 years ago
utils [stable-2.8] Skip tests with unsatisfied deps (#55853) 7 years ago
vars Fix inventory cache interface (#50446) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
ansible.cfg Fix ansible-test config management. 8 years ago
conftest.py Update handling of the non_local test alias. 7 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 9 years ago
test_context.py Save the command line arguments into a global context 7 years ago