nextcloud/tests/lib
Mohammed Abdellatif 98d6415264 Add support for GuzzleHTTP 'no' proxy
The custom config allows to setup a proxy URI that is passed to
GuzzleHTTP client as request options. Guzzle has the option to receive
an array of proxies for each URI scheme as well as 'no' key value pair
to provide a list of host names that should not be proxied to.

Guzzle would automatically populate these options with HTTPS_PROXY
and NO_PROXY environment variables. However, when providing a 'proxy'
request option, default values will be overriden and it is required to
explicitly provide the 'no' value if needed.

More info:
http://docs.guzzlephp.org/en/stable/request-options.html#proxy

This commit will add support for a new config 'proxyexclude', which
takes a list of host names to be excluded.

It will also provide 'proxy' request option as an array instead of a
string to Guzzle, and populate 'http' and 'https' URI schemes with
proxy URI, and 'no' with 'proxyexclude' list.

Also, if no 'proxy' is configured, it will leave out 'proxy' request
option, so it won't override Guzzle default values.

Sample config file includes a hint on how to explicitly sync
'proxyexclude' with NO_PROXY, and a note about default values.

Signed-off-by: Mohammed Abdellatif <m.latief@gmail.com>
2020-02-29 19:19:23 +02:00
..
Accounts Log critical fallback to user default if we can't parse the JSON 2019-12-13 12:39:29 +01:00
Activity Mode to modern phpunit 2019-11-27 15:27:18 +01:00
App add hub bundle for easy post-installation 2020-01-26 21:23:42 +01:00
AppFramework Add test to trigger "Trying to access array offset on value of type int" 2020-01-23 10:18:14 +01:00
Archive Remove \OCP\Files::tmpFolder 2018-03-19 10:54:39 +01:00
Authentication Clean up 2FA provider registry when a user is deleted 2020-01-08 10:51:44 +01:00
Avatar Change avatar placeholder from single letter to 2 letters 2020-01-27 09:42:45 +01:00
BackgroundJob Make sure to catch php errors during job execution 2020-01-31 16:04:04 +01:00
Cache I love unit tests that mock unnecessary stuff 2019-12-04 15:22:02 +01:00
Calendar Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
Collaboration Decouple resource provider registration 2019-12-07 22:04:07 +01:00
Command Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Comments Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Contacts/ContactsMenu Do not encode contacts menu mailto links 2020-01-28 14:57:45 +01:00
DB Pick a shorter name for the transfer ownership table 2019-12-10 11:01:26 +01:00
Diagnostics Mode to modern phpunit 2019-11-27 15:27:18 +01:00
DirectEditing use nodeExists instead of catching exceptions 2020-01-14 11:03:14 +01:00
Encryption Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Federation Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Files better tests for SimpleFolder 2020-02-28 12:55:20 +01:00
GlobalScale Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Group Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Hooks Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Http/Client Add support for GuzzleHTTP 'no' proxy 2020-02-29 19:19:23 +02:00
IntegrityCheck Mode to modern phpunit 2019-11-27 15:27:18 +01:00
L10N Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Lock Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Lockdown Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Log Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
Mail Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Memcache Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Migration Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Notification Mode to modern phpunit 2019-11-27 15:27:18 +01:00
OCS Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Preview Mode to modern phpunit 2019-11-27 15:27:18 +01:00
PublicNamespace Migrate tests for contacts manager to correct test class 2018-03-21 10:43:18 +01:00
Remote Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Repair Mode to modern phpunit 2019-11-27 15:27:18 +01:00
RichObjectStrings Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Security Add Argon2id support 2020-02-07 07:52:33 +01:00
Session Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Settings Move Admin Settings also to info.xml 2020-01-31 16:55:17 +01:00
Share Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Share20 Strip of users home path from share api message 2020-02-20 14:56:58 +01:00
Support Mode to modern phpunit 2019-11-27 15:27:18 +01:00
SystemTag Mode to modern phpunit 2019-11-27 15:27:18 +01:00
Template Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
Traits Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
Updater when we receive intentional empty whats new info, do not try to show it 2020-02-13 22:03:44 +01:00
User Add typed create user events 2019-12-03 08:03:57 +01:00
Util Some php-cs fixes 2019-11-22 20:52:10 +01:00
AllConfigTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
APITest.php Remove unused methods and constants from legacy OC_API 2018-03-12 18:03:25 +01:00
AppConfigTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
AppTest.php Allow to force enable apps via CLI 2019-12-13 13:06:12 +01:00
AutoLoaderTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
CapabilitiesManagerTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
ConfigTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
ContactsManagerTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
DateTimeFormatterTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
ErrorHandlerTest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
FileChunkingTest.php Some php-cs fixes 2019-11-22 20:52:10 +01:00
HelperStorageTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
HookHelper.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
ImageTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
InfoXmlTest.php Move settings to an app 2019-09-28 09:39:28 +00:00
InitialStateServiceTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
InstallerTest.php disable timeout on app install via cli 2020-02-12 16:52:45 +01:00
LargeFileHelperGetFileSizeTest.php TO REVERT LATER: disable tests in LargeFileHelperGetFileSizeTest 2019-11-27 15:27:28 +01:00
LargeFileHelperTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
LegacyHelperTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
LoggerTest.php Fix the LoggerTests for phpunit 2020-01-06 09:06:52 +01:00
MemoryInfoTest.php Adds license to files. Updates the branch. 2018-08-20 20:46:23 +02:00
NaturalSortTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
NavigationManagerTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
RepairStepTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
ServerTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
SetupTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
SubAdminTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
TagsTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
TemplateFunctionsTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
TempManagerTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
TestCase.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
TestMoveableMountPoint.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
UpdaterTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
UrlGeneratorTest.php Mode to modern phpunit 2019-11-27 15:27:18 +01:00
UtilCheckServerTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00
UtilTest.php Make phpunit8 compatible 2019-11-27 13:34:41 +01:00