Skip to content

Commit

Permalink
A couple tweaks from Justin's review.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeirstead committed Aug 2, 2021
2 parents 708f730 + 5eaa3a8 commit 7ac8fdd
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 21 deletions.
24 changes: 12 additions & 12 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
<Uri>https://github.com/dotnet/command-line-api</Uri>
<Sha>166610c56ff732093f0145a2911d4f6c40b786da</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Monitoring" Version="5.0.0-preview.21377.1">
<Dependency Name="Microsoft.Diagnostics.Monitoring" Version="5.0.0-preview.21378.1">
<Uri>https://github.com/dotnet/diagnostics</Uri>
<Sha>e995491f3cfc3ccd404f03e63043dfa3620e9ffe</Sha>
<Sha>9dc72da9618bbb8c57b902d5e3721ebdfa47b681</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Monitoring.EventPipe" Version="5.0.0-preview.21377.1">
<Dependency Name="Microsoft.Diagnostics.Monitoring.EventPipe" Version="5.0.0-preview.21378.1">
<Uri>https://github.com/dotnet/diagnostics</Uri>
<Sha>e995491f3cfc3ccd404f03e63043dfa3620e9ffe</Sha>
<Sha>9dc72da9618bbb8c57b902d5e3721ebdfa47b681</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21377.2">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21378.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>cab4a3c50fd042677ea17cfc5171b4ce8b29930f</Sha>
<Sha>dd3652e2ae5ea89703a2286295de9efe908974f1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="6.0.0-beta.21377.2">
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="6.0.0-beta.21378.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>cab4a3c50fd042677ea17cfc5171b4ce8b29930f</Sha>
<Sha>dd3652e2ae5ea89703a2286295de9efe908974f1</Sha>
</Dependency>
<Dependency Name="Microsoft.FileFormats" Version="1.0.215101">
<Uri>https://github.com/dotnet/symstore</Uri>
<Sha>3ed87724fe4e98c7ecc77617720591783ee2e676</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0" Version="6.0.0-rc.1.21378.1">
<Dependency Name="VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0" Version="6.0.0-rc.1.21379.1">
<Uri>https://github.com/dotnet/aspnetcore</Uri>
<Sha>18a926850f7374248e687ee64390e7f10514403f</Sha>
<Sha>2ee3f4a0e47ab86714e21cb6a7aeb1d8799b8104</Sha>
</Dependency>
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.6.0" Version="6.0.0-rc.1.21378.2">
<Dependency Name="VS.Redist.Common.NetCore.SharedFramework.x64.6.0" Version="6.0.0-rc.1.21378.9">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>cf52b7e38d28b7e28358cee052effe0ed47efb2e</Sha>
<Sha>6d3518520ae041fb4c6c1c54d5abf0975a38a450</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
10 changes: 5 additions & 5 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
-->
<PropertyGroup Label="Automated">
<!-- dotnet/arcade references -->
<MicrosoftDotNetXUnitExtensionsVersion>6.0.0-beta.21377.2</MicrosoftDotNetXUnitExtensionsVersion>
<MicrosoftDotNetXUnitExtensionsVersion>6.0.0-beta.21378.2</MicrosoftDotNetXUnitExtensionsVersion>
<!-- dotnet/aspnetcore references -->
<VSRedistCommonAspNetCoreSharedFrameworkx6460Version>6.0.0-rc.1.21378.1</VSRedistCommonAspNetCoreSharedFrameworkx6460Version>
<VSRedistCommonAspNetCoreSharedFrameworkx6460Version>6.0.0-rc.1.21379.1</VSRedistCommonAspNetCoreSharedFrameworkx6460Version>
<!-- dotnet/diagnostics references -->
<MicrosoftDiagnosticsMonitoringVersion>5.0.0-preview.21377.1</MicrosoftDiagnosticsMonitoringVersion>
<MicrosoftDiagnosticsMonitoringEventPipeVersion>5.0.0-preview.21377.1</MicrosoftDiagnosticsMonitoringEventPipeVersion>
<MicrosoftDiagnosticsMonitoringVersion>5.0.0-preview.21378.1</MicrosoftDiagnosticsMonitoringVersion>
<MicrosoftDiagnosticsMonitoringEventPipeVersion>5.0.0-preview.21378.1</MicrosoftDiagnosticsMonitoringEventPipeVersion>
<!-- dotnet/runtime references -->
<VSRedistCommonNetCoreSharedFrameworkx6460Version>6.0.0-rc.1.21378.2</VSRedistCommonNetCoreSharedFrameworkx6460Version>
<VSRedistCommonNetCoreSharedFrameworkx6460Version>6.0.0-rc.1.21378.9</VSRedistCommonNetCoreSharedFrameworkx6460Version>
<!-- dotnet/symstore references -->
<MicrosoftFileFormatsVersion>1.0.215101</MicrosoftFileFormatsVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion eng/common/internal/Tools.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "2.0.1",
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21377.2"
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21378.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
using Microsoft.Diagnostics.Monitoring.UnitTests.Models;
using Microsoft.Diagnostics.Monitoring.UnitTests.Options;
using Microsoft.Diagnostics.Monitoring.UnitTests.Runners;
using Microsoft.Diagnostics.Monitoring.WebApi;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.FileFormats;
using Microsoft.FileFormats.ELF;
using Microsoft.FileFormats.MachO;
Expand All @@ -25,6 +27,7 @@
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
using DiagnosticPortConnectionMode = Microsoft.Diagnostics.Monitoring.UnitTests.Options.DiagnosticPortConnectionMode;

namespace Microsoft.Diagnostics.Monitoring.UnitTests
{
Expand All @@ -36,7 +39,10 @@ public class EgressTests : IDisposable
private readonly DirectoryInfo _tempEgressPath;

private const string FileProviderName = "files";


// This should be identical to the error message found in Strings.resx
private const string DisabledHTTPEgressErrorMessage = "HTTP egress is not enabled.";

public EgressTests(ITestOutputHelper outputHelper, ServiceProviderFixture serviceProviderFixture)
{
_httpClientFactory = serviceProviderFixture.ServiceProvider.GetService<IHttpClientFactory>();
Expand Down Expand Up @@ -232,12 +238,14 @@ await ScenarioRunner.SingleTarget(
() => appClient.CaptureDumpAsync(appRunner.ProcessId, DumpType.Mini));
Assert.Equal(HttpStatusCode.BadRequest, validationProblemDetailsExceptionDumps.StatusCode);
Assert.Equal(StatusCodes.Status400BadRequest, validationProblemDetailsExceptionDumps.Details.Status);
Assert.Equal(DisabledHTTPEgressErrorMessage, validationProblemDetailsExceptionDumps.Message);

// Logs Error Check
ValidationProblemDetailsException validationProblemDetailsExceptionLogs = await Assert.ThrowsAsync<ValidationProblemDetailsException>(
() => appClient.CaptureLogsAsync(appRunner.ProcessId, TestTimeouts.LogsDuration, Extensions.Logging.LogLevel.None, WebApi.LogFormat.NDJson));
() => appClient.CaptureLogsAsync(appRunner.ProcessId, TestTimeouts.LogsDuration, LogLevel.None, LogFormat.NDJson));
Assert.Equal(HttpStatusCode.BadRequest, validationProblemDetailsExceptionLogs.StatusCode);
Assert.Equal(StatusCodes.Status400BadRequest, validationProblemDetailsExceptionLogs.Details.Status);
Assert.Equal(DisabledHTTPEgressErrorMessage, validationProblemDetailsExceptionLogs.Message);

await appRunner.SendCommandAsync(TestAppScenarios.AsyncWait.Commands.Continue);
},
Expand Down

0 comments on commit 7ac8fdd

Please sign in to comment.