From 276147267271eec55b702f85e31439e27cff04f0 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Thu, 6 Jul 2017 09:26:12 -0700 Subject: [PATCH] Use valid protocol on sites tests to prevent unknown status and failure in Sites.ChangeAllProperties --- test/Microsoft.IIS.Administration.Tests/Sites.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.IIS.Administration.Tests/Sites.cs b/test/Microsoft.IIS.Administration.Tests/Sites.cs index f491b76..5f9eb0c 100644 --- a/test/Microsoft.IIS.Administration.Tests/Sites.cs +++ b/test/Microsoft.IIS.Administration.Tests/Sites.cs @@ -71,7 +71,7 @@ namespace Microsoft.IIS.Administration.Tests site["server_auto_start"] = !site.Value("server_auto_start"); site["physical_path"] = Configuration.TEST_ROOT_PATH; - site["enabled_protocols"] = "test_protocol"; + site["enabled_protocols"] = site.Value("enabled_protocols").Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : "http"; // If site status is unknown then we don't know if it will be started or stopped when it becomes available // Utilizing the defaults we assume it will go from unkown to started