public void VerifyEnvironmentVariables(MonitorImageData imageData) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(ProductImageTests.GetCommonEnvironmentVariables()); // ASPNETCORE_URLS has been unset to allow the default URL binding to occur. variables.Add(new EnvironmentVariableInfo("ASPNETCORE_URLS", string.Empty)); // Diagnostics should be disabled variables.Add(new EnvironmentVariableInfo("COMPlus_EnableDiagnostics", "0")); EnvironmentVariableInfo.Validate( variables, imageData.GetImage(DockerHelper), imageData, DockerHelper); }
private void ValidateEnvironmentVariables(SampleImageData imageData, string image, SampleImageType imageType) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(ProductImageTests.GetCommonEnvironmentVariables()); if (imageType == SampleImageType.Aspnetapp) { variables.Add(new EnvironmentVariableInfo("ASPNETCORE_URLS", "http://+:80")); } EnvironmentVariableInfo.Validate( variables, image, imageData, DockerHelper); }
public void VerifyEnvironmentVariables(MonitorImageData imageData) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(ProductImageTests.GetCommonEnvironmentVariables()); // ASPNETCORE_URLS has been unset to allow the default URL binding to occur. variables.Add(new EnvironmentVariableInfo("ASPNETCORE_URLS", string.Empty)); // Diagnostics should be disabled variables.Add(new EnvironmentVariableInfo("COMPlus_EnableDiagnostics", "0")); // DefaultProcess filter should select a process with a process ID of 1 variables.Add(new EnvironmentVariableInfo("DefaultProcess__Filters__0__Key", "ProcessId")); variables.Add(new EnvironmentVariableInfo("DefaultProcess__Filters__0__Value", "1")); // Console logger format should be JSON and output UTC timestamps without timezone information variables.Add(new EnvironmentVariableInfo("Logging__Console__FormatterName", "json")); variables.Add(new EnvironmentVariableInfo("Logging__Console__FormatterOptions__TimestampFormat", "yyyy-MM-ddTHH:mm:ss.fffffffZ")); variables.Add(new EnvironmentVariableInfo("Logging__Console__FormatterOptions__UseUtcTimestamp", "true")); EnvironmentVariableInfo.Validate( variables, imageData.GetImage(DockerHelper), imageData, DockerHelper); }