1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/module_utils/urls
Matt Martz 6332beef65
Add unit tests for ansible.module_utils.urls (#38059)
* Start of tests for ansible.module_utils.urls

* Start adding file for generic functions throughout urls

* Add tests for maybe_add_ssl_handler

* Remove commented out line

* Improve coverage of maybe_add_ssl_handler, test basic_auth_header

* Start tests for open_url

* pep8 and ignore urlopen in test_url_open.py tests

* Extend auth tests, add test for validate_certs=False

* Finish tests for open_url

* Add tests for fetch_url

* Add fetch_url tests to replace-urlopen ignore

* dummy instead of _

* Add BadStatusLine test

* Reorganize/rename tests

* Add tests for RedirectHandlerFactory

* Add POST test to confirm behavior is to convert to GET

* Update tests to handle recent changes to RedirectHandlerFactory

* Special test, just to confirm that aliasing http_error_308 to http_error_307 does not cause issues with urllib2 type redirects
2018-04-09 10:17:43 -05:00
..
fixtures Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
__init__.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_fetch_url.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_generic_urlparse.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_open_url.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_RedirectHandlerFactory.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_RequestWithMethod.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00
test_urls.py Add unit tests for ansible.module_utils.urls (#38059) 2018-04-09 10:17:43 -05:00