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
Mike Bonnet 9c5d3060e5
uri: Handle the "force" parameter properly (#82187)
* uri: Two tests that demonstrate missing handling of the "force" parameter

Add unit and integration tests that demonstrate that the uri module is not
handling the "force" parameter.

The unit test demonstrates that when "force" is present in the module parameters,
it is not being passed through to fetch_url().

The integration test demonstrates that "force" does not disable caching as
documented, and calls with a "dest" parameter that points to an existing file
can result in a "304 Not Modified" response.

* uri: Handle the "force" parameter properly

The uri module documents a "force" parameter that can be used to disable caching.
The module accepted the parameter but didn't pass it through to the fetch_url() method
which implements the logic to handle setting the appropriate headers for disabling
caching. This change passes the "force" parameter through as expected, allowing caching
to be disabled when requested by the module caller.
8 months ago
..
__init__.py Some algorithmic unittests for the apt and docker modules 9 years ago
conftest.py Require `from __future__ import annotations` (#81902) 12 months ago
test_apt.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_apt_key.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_async_wrapper.py Require `from __future__ import annotations` (#81902) 12 months ago
test_copy.py Require `from __future__ import annotations` (#81902) 12 months ago
test_hostname.py Remove Python 2 compat (via six) from unit tests 11 months ago
test_iptables.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_known_hosts.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_pip.py Require `from __future__ import annotations` (#81902) 12 months ago
test_service.py Remove Python 2 compat (via six) from unit tests 11 months ago
test_service_facts.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_systemd.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
test_unarchive.py Require `from __future__ import annotations` (#81902) 12 months ago
test_uri.py uri: Handle the "force" parameter properly (#82187) 8 months ago
test_yum.py Remove Python 2.x compat from unit tests (#82109) 11 months ago
utils.py Remove Python 2.x compat from unit tests (#82109) 11 months ago