public function ProxyConfigTest::proxyConfigurationData in Raven: Sentry Integration 3.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/ProxyConfigTest.php \Drupal\Tests\raven\Unit\ProxyConfigTest::proxyConfigurationData()
Data provider for testProxyConfiguration().
File
- tests/
src/ Unit/ ProxyConfigTest.php, line 59
Class
- ProxyConfigTest
- Test proxy configuration.
Namespace
Drupal\Tests\raven\UnitCode
public function proxyConfigurationData() {
return [
// HTTP DSN, Empty proxy white-list.
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [],
],
'http',
],
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [],
],
'http',
],
// HTTP DSN, Not empty proxy white-list.
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [
'some.server.test',
],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [
'some.server.test',
],
],
'http',
],
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
],
],
'http',
],
// HTTP DSN, Not empty proxy white-list, Sentry white-listed.
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'http://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
// HTTPS DSN, Empty proxy white-list.
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [],
],
'https',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [],
],
'https',
],
// HTTPS DSN, Not empty proxy white-list.
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [
'some.server.test',
],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [
'some.server.test',
],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
],
],
'https',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
],
],
'https',
],
// HTTPS DSN, Not empty proxy white-list, Sentry white-listed.
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => NULL,
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => NULL,
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => NULL,
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
[
'https://user@sentry.test/123456',
[
'http' => 'http-proxy.server.test:3129',
'https' => 'https-proxy.server.test:3129',
'no' => [
'some.server.test',
'sentry.test',
],
],
'no',
],
];
}