diff options
author | Markus Keller | 2016-10-13 15:46:49 +0000 |
---|---|---|
committer | Dani Megert | 2016-10-15 14:04:57 +0000 |
commit | a4fb61b98bec0b2ef52afbe248f21b0195781dbf (patch) | |
tree | c7dd90d9bc25bf8846ad98161b51dd739cadd65e /tests | |
parent | b5c052a00231a41f5cf4161f556d2cf99cb740cf (diff) | |
download | eclipse.platform.team-a4fb61b98bec0b2ef52afbe248f21b0195781dbf.tar.gz eclipse.platform.team-a4fb61b98bec0b2ef52afbe248f21b0195781dbf.tar.xz eclipse.platform.team-a4fb61b98bec0b2ef52afbe248f21b0195781dbf.zip |
Bug 505906: UnixProxyProvider's support for no_proxy environmentY20161018-1100I20161018-0800
variable is non-standard
Change-Id: I501d19073526f796d05892f2557ed63f4f59cf4a
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java index 5a68028cc..6ae0f1daa 100644 --- a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java +++ b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java @@ -338,6 +338,35 @@ public class NetTest extends TestCase { this.getProxyManager().setNonProxiedHosts(oldHosts); } + public void testHostPatternBug505906() throws CoreException { + setDataTest(IProxyData.HTTP_PROXY_TYPE); + setDataTest(IProxyData.HTTPS_PROXY_TYPE); + setDataTest(IProxyData.SOCKS_PROXY_TYPE); + + String[] oldHosts = this.getProxyManager().getNonProxiedHosts(); + this.getProxyManager().setNonProxiedHosts(new String[] { "ignore.com" }); + + IProxyData[] allData = this.getProxyManager().getProxyDataForHost("ignore.com.randomhot.com"); + assertEquals(3, allData.length); + + IProxyData data = this.getProxyManager().getProxyDataForHost("ignore.com.randomhot.com", IProxyData.HTTP_PROXY_TYPE); + assertNotNull(data); + + allData = this.getProxyManager().getProxyDataForHost("www.ignore.com"); + assertEquals(0, allData.length); + + data = this.getProxyManager().getProxyDataForHost("www.ignore.com", IProxyData.HTTP_PROXY_TYPE); + assertNull(data); + + allData = this.getProxyManager().getProxyDataForHost("ignore.com"); + assertEquals(0, allData.length); + + data = this.getProxyManager().getProxyDataForHost("ignore.com", IProxyData.HTTP_PROXY_TYPE); + assertNull(data); + + this.getProxyManager().setNonProxiedHosts(oldHosts); + } + public void testBug238796() throws CoreException { setDataTest(IProxyData.HTTP_PROXY_TYPE); setDataTest(IProxyData.HTTPS_PROXY_TYPE); |