forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds new proxy tests and manual proxy tester (elastic#138071)
The new proxy tests added can test a variety of different proxy and target server configurations, however many of those tests are broken with our current proxy agents. Hopefully to be fixed by replacing with hpagent instead. In the meantime, we wanted to get the basic test framework in as well. In addition to tests, the stand-alone forward proxy has been enhanced to use a better proxy server, `proxy`. The existing proxy server `http-proxy` does not support HTTPS out of the box, and so any HTTPS testing with it is going to be a little sketchy. Using the stand-alone forward proxy, I was able to post to Slack through http/https proxies with and without auth, with proxyRequestUnauthorized set to false. Which shows the existing proxy agents do work in _some_ environments.
- Loading branch information
Showing
8 changed files
with
1,397 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
module.exports = { | ||
preset: '@kbn/test/jest_integration_node', | ||
rootDir: '../../..', | ||
roots: ['<rootDir>/x-pack/plugins/actions'], | ||
}; |
284 changes: 0 additions & 284 deletions
284
x-pack/plugins/actions/server/builtin_action_types/lib/axios_utils_connection.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.