protected virtual void AssertProxyBypassed(CalamariResult output) { output.AssertSuccess(); output.AssertPropertyValue("HTTP_PROXY", ""); output.AssertPropertyValue("HTTPS_PROXY", ""); output.AssertPropertyValue("NO_PROXY", "*"); }
protected virtual void AssertUnauthenticatedProxyUsed(CalamariResult output) { output.AssertSuccess(); output.AssertPropertyValue("HTTP_PROXY", proxyUrl); output.AssertPropertyValue("HTTPS_PROXY", proxyUrl); output.AssertPropertyValue("NO_PROXY", "127.0.0.1,localhost,169.254.169.254"); }
void AssertUnauthenticatedSystemProxyUsedWithException(CalamariResult output, string bypassedUrl) { AssertUnauthenticatedSystemProxyUsed(output); if (TestWebRequestDefaultProxy) { output.AssertPropertyValue("ProxyBypassed", bypassedUrl); } }
protected override void AssertProxyBypassed(CalamariResult output) { base.AssertProxyBypassed(output); if (IsRunningOnWindows && TestWebRequestDefaultProxy) { output.AssertPropertyValue("WebRequest.DefaultProxy", "None"); } }
protected override void AssertUnauthenticatedProxyUsed(CalamariResult output) { base.AssertUnauthenticatedProxyUsed(output); if (IsRunningOnWindows && TestWebRequestDefaultProxy) { output.AssertPropertyValue("WebRequest.DefaultProxy", proxyUrl + "/"); } }
protected override void AssertAuthenticatedProxyUsed(CalamariResult output) { base.AssertAuthenticatedProxyUsed(output); if (IsRunningOnWindows && TestWebRequestDefaultProxy) { // This can be either the authenticated or unauthenticated URL. The authentication part should be ignored output.AssertPropertyValue("WebRequest.DefaultProxy", proxyUrl + "/", authenticatedProxyUrl + "/"); } }
void AssertUnauthenticatedSystemProxyUsedWithException(CalamariResult output, string bypassedUrl) { #if !NETCORE AssertUnauthenticatedSystemProxyUsed(output); if (TestWebRequestDefaultProxy) { output.AssertPropertyValue("ProxyBypassed", bypassedUrl); } #else base.AssertNoProxyChanges(output); #endif }