You can use jetty to create in-process http proxy servers. There is helper for this in m2e [1] and I think Tycho has something similar too.
There is also MockWebServer from Square [2], which arguably gives you finer control over your test server behaviour. We use it to test some aspects of Aether okhttp connector, but I don't think there is anything specific to okhttp in the mock server. I don't know how to test NTLM proxies, however. Just never had a chance/need to dig into it. If anyone has any hints and/or experience, I'd be interested to know. [1] http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java?id=milestones/1.6/1.6.0.20150519-1922 [2] https://github.com/square/okhttp/tree/master/mockwebserver -- Regards, Igor On Tue, Jun 9, 2015, at 03:57 AM, Marcel Bruch wrote: > Dear cross-projects, > > for the error reporting we use the Apache HTTP Client to send error reports > to its REST server. We spotted an issue how we handle proxies that require > authentication - but were unfortunately not yet able completely fix it. > > I wonder how other projects test proxied communication. Is there something > like a “proxy simulator” or a set of test proxies you use? It would be great > if others could share their setups. > > In case s/o has deeper knowledge in using the Apache HTTP Client APIs: the > code we use to configure our HTTP proxy is in [1]. > > All insights are welcome. > > Thank you > Marcel > > > [1] > https://git.eclipse.org/c/epp/org.eclipse.epp.logging.git/tree/bundles/org.eclipse.epp.logging.aeri.ui/src/org/eclipse/epp/internal/logging/aeri/ui/utils/Proxies.java > > —— > > Statistics for the latest RC: > > Number of requests with no authentication: > P2: 3278 > Apache: 3280 > > Number of requests with any (or unknown) authentication: > P2: 74 > Apache: 30 > > Number of requests with NTLM authentication: > P2: 24 > Apache: 6 > > > _________________________________________________ > cross-project-issues-dev mailing list > cross-project-issues-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
_______________________________________________ cross-project-issues-dev mailing list cross-project-issues-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev