Quarantine dotnet-user-secrets InitCommandTests (#21338)
This commit is contained in:
parent
3af92e29b5
commit
49b4f418d5
|
|
@ -98,6 +98,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Internal
|
||||||
{
|
{
|
||||||
_reporter.Verbose(outputBuilder.ToString());
|
_reporter.Verbose(outputBuilder.ToString());
|
||||||
_reporter.Verbose(errorBuilder.ToString());
|
_reporter.Verbose(errorBuilder.ToString());
|
||||||
|
_reporter.Error($"Exit code: {process.ExitCode}");
|
||||||
throw new InvalidOperationException(Resources.FormatError_ProjectFailedToLoad(projectFile));
|
throw new InvalidOperationException(Resources.FormatError_ProjectFailedToLoad(projectFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
|
||||||
private CommandContext MakeCommandContext() => new CommandContext(null, new TestReporter(_output), _console);
|
private CommandContext MakeCommandContext() => new CommandContext(null, new TestReporter(_output), _console);
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
[QuarantinedTest]
|
||||||
public void AddsSecretIdToProject()
|
public void AddsSecretIdToProject()
|
||||||
{
|
{
|
||||||
var projectDir = _fixture.CreateProject(null);
|
var projectDir = _fixture.CreateProject(null);
|
||||||
|
|
@ -44,6 +45,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
[QuarantinedTest]
|
||||||
public void AddsSpecificSecretIdToProject()
|
public void AddsSpecificSecretIdToProject()
|
||||||
{
|
{
|
||||||
const string SecretId = "TestSecretId";
|
const string SecretId = "TestSecretId";
|
||||||
|
|
@ -58,6 +60,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
[QuarantinedTest]
|
||||||
public void AddsEscapedSpecificSecretIdToProject()
|
public void AddsEscapedSpecificSecretIdToProject()
|
||||||
{
|
{
|
||||||
const string SecretId = @"<lots of XML invalid values>&";
|
const string SecretId = @"<lots of XML invalid values>&";
|
||||||
|
|
@ -72,6 +75,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
[QuarantinedTest]
|
||||||
public void DoesNotGenerateIdForProjectWithSecretId()
|
public void DoesNotGenerateIdForProjectWithSecretId()
|
||||||
{
|
{
|
||||||
const string SecretId = "AlreadyExists";
|
const string SecretId = "AlreadyExists";
|
||||||
|
|
@ -114,6 +118,7 @@ namespace Microsoft.Extensions.SecretManager.Tools.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
[QuarantinedTest]
|
||||||
public void OverridesIdForProjectWithSecretId()
|
public void OverridesIdForProjectWithSecretId()
|
||||||
{
|
{
|
||||||
const string SecretId = "AlreadyExists";
|
const string SecretId = "AlreadyExists";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue