Robin Roth
c06884eff0
Run tests on ubuntu1604 and opensuseleap ( #15936 )
...
* reduce async sleep time in test
* make zypper test less destructive (don't break following uses of zypper)
* fix ca cert on suse
* fix/enable postgres/mysql on opensuseleap
* fix mysql test for mysql versions 5.7.6 and newer
* skip sni_host check on ubuntu1604
* add HTTPTESTER flag for test_uri
ubuntu 16.04 uses dash which drops env variables containing a dot
we work around this by adding an explicit env variable to enable httptester
9 years ago
Matt Martz
accf40d8a8
Use httptester docker image for http tests ( #15811 )
...
* Use httptester docker image for http tests
* When not running with an httptester linked container, use public test sites
9 years ago
Toshio Kuratomi
7ccb08cc7e
Switch to a different url for testing SNI right now. ( #15798 )
9 years ago
James Cammarata
ed35e8bce2
Don't override the http status code when successful in urls.py
9 years ago
Matt Martz
a985bf6a31
Don't pass context to urlopen, instead add it to the handlers. Fixes https://github.com/ansible/ansible-modules-core/issues/3437
9 years ago
Matt Martz
6e9c09d7f7
Utilize urllib3.contrib.pyopenssl functionality for SNI capability in python versions lacking SNI support
...
Also add SNI tests, move test_uri to destructive since we are messing with packages for SNI testing
9 years ago
Matt Martz
cacb74aeeb
Merge pull request #14340 from sivel/uri-no-httplib2
...
Add RedirectHandler class for controlling redirects in urllib2
9 years ago
Matt Martz
3e9408e317
Add some additional integration tests that mix SSL verification and redirects
9 years ago
Brian Coca
08b3dbcda3
corrected several usages of deprecated bare vars
9 years ago
Matt Martz
97e0f29a5b
Add/improve tests for the uri module
9 years ago
Toshio Kuratomi
1cc83dd0d9
Make tests that use kennethreitz retry.
9 years ago
Toshio Kuratomi
8c6f56f982
kennetreitz.org times out but www.kennethreitz.org is fine
9 years ago
Toshio Kuratomi
327b1676a8
Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
...
Fixes #1716
Fixes #1695
9 years ago
Toshio Kuratomi
ac14ad1419
Test on fields that are actually set
10 years ago
Toshio Kuratomi
1bda7cc200
Test that uri module validates certs
10 years ago
Toshio Kuratomi
7af2632c87
Forgot to invoke wrapper instead of SimpleHttpServer
10 years ago
Toshio Kuratomi
b312e97a30
Think that integration tests are failing in json due to lack of json mimetype. Make a short wrapper to fix that.
10 years ago
Toshio Kuratomi
0f9ad9dad2
Update integration tests from @darkk to work with the current uri module code
10 years ago
Leonid Evdokimov
3383a7b37a
tests: replace start-stop-daemon with async action
10 years ago
Leonid Evdokimov
ae9ba4afa1
uri: provide raw_content, parse json without double-decoding. Fixes #7586
...
Regression potential:
- `raw_content` is written to `dest` file instead of decoded `content`
- `raw_content` doubles module reply
10 years ago