Quarantine dotnet-user-secrets InitCommandTests (#21338)

This commit is contained in:
Stephen Halter 2020-04-29 20:56:43 -07:00 committed by GitHub
parent 3af92e29b5
commit 49b4f418d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Internal
{
_reporter.Verbose(outputBuilder.ToString());
_reporter.Verbose(errorBuilder.ToString());
_reporter.Error($"Exit code: {process.ExitCode}");
throw new InvalidOperationException(Resources.FormatError_ProjectFailedToLoad(projectFile));
}

View File

@ -32,6 +32,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
private CommandContext MakeCommandContext() => new CommandContext(null, new TestReporter(_output), _console);
[Fact]
[QuarantinedTest]
public void AddsSecretIdToProject()
{
var projectDir = _fixture.CreateProject(null);
@ -44,6 +45,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
}
[Fact]
[QuarantinedTest]
public void AddsSpecificSecretIdToProject()
{
const string SecretId = "TestSecretId";
@ -58,6 +60,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
}
[Fact]
[QuarantinedTest]
public void AddsEscapedSpecificSecretIdToProject()
{
const string SecretId = @"<lots of XML invalid values>&";
@ -72,6 +75,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
}
[Fact]
[QuarantinedTest]
public void DoesNotGenerateIdForProjectWithSecretId()
{
const string SecretId = "AlreadyExists";
@ -114,6 +118,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
}
[Fact]
[QuarantinedTest]
public void OverridesIdForProjectWithSecretId()
{
const string SecretId = "AlreadyExists";