Use valid protocol on sites tests to prevent unknown status and failure in Sites.ChangeAllProperties

This commit is contained in:
Jimmy Campbell 2017-07-06 09:26:12 -07:00
Родитель 9167db4835
Коммит 2761472672
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -71,7 +71,7 @@ namespace Microsoft.IIS.Administration.Tests
site["server_auto_start"] = !site.Value<bool>("server_auto_start");
site["physical_path"] = Configuration.TEST_ROOT_PATH;
site["enabled_protocols"] = "test_protocol";
site["enabled_protocols"] = site.Value<string>("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