示例#1
0
 protected virtual void AssertProxyBypassed(CalamariResult output)
 {
     output.AssertSuccess();
     output.AssertPropertyValue("HTTP_PROXY", "");
     output.AssertPropertyValue("HTTPS_PROXY", "");
     output.AssertPropertyValue("NO_PROXY", "*");
 }
示例#2
0
 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");
 }
示例#3
0
 void AssertUnauthenticatedSystemProxyUsedWithException(CalamariResult output, string bypassedUrl)
 {
     AssertUnauthenticatedSystemProxyUsed(output);
     if (TestWebRequestDefaultProxy)
     {
         output.AssertPropertyValue("ProxyBypassed", bypassedUrl);
     }
 }
示例#4
0
 protected override void AssertProxyBypassed(CalamariResult output)
 {
     base.AssertProxyBypassed(output);
     if (IsRunningOnWindows && TestWebRequestDefaultProxy)
     {
         output.AssertPropertyValue("WebRequest.DefaultProxy", "None");
     }
 }
示例#5
0
 protected override void AssertUnauthenticatedProxyUsed(CalamariResult output)
 {
     base.AssertUnauthenticatedProxyUsed(output);
     if (IsRunningOnWindows && TestWebRequestDefaultProxy)
     {
         output.AssertPropertyValue("WebRequest.DefaultProxy", proxyUrl + "/");
     }
 }
示例#6
0
 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
        }