-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix launch settings stderr test assertions and container digest validation #53906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
862836d
a2a0166
47f5808
1527e3b
5b79050
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,7 +88,7 @@ public void ItUsesLaunchProfileOfTheSpecifiedName(string launchProfileName) | |
| .And | ||
| .HaveStdOutContaining("Second") | ||
| .And | ||
| .NotHaveStdErr(); | ||
| .HaveStdErrContaining("Using launch settings from"); | ||
| } | ||
|
|
||
| [Fact] | ||
|
|
@@ -99,17 +99,17 @@ public void ItDefaultsToTheFirstUsableLaunchProfile() | |
| .WithSource(); | ||
|
|
||
| var testProjectDirectory = testInstance.Path; | ||
| var launchSettingsPath = Path.Combine(testProjectDirectory, "Properties", "launchSettings.json"); | ||
| var launchSettingsPath = Path.Combine(testProjectDirectory, "My Project", "launchSettings.json"); | ||
|
|
||
| var cmd = new DotnetCommand(Log, "run") | ||
| .WithWorkingDirectory(testProjectDirectory) | ||
| .Execute(); | ||
|
|
||
| cmd.Should().Pass() | ||
| .And.NotHaveStdOutContaining(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)) | ||
| .And.HaveStdOutContaining("First"); | ||
|
|
||
| cmd.StdErr.Should().BeEmpty(); | ||
| cmd.StdErr.Should().Contain( | ||
| string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)); | ||
| } | ||
|
Comment on lines
110
to
113
|
||
|
|
||
| [Fact] | ||
|
|
@@ -126,10 +126,8 @@ public void ItPrintsUsingLaunchSettingsMessageWhenNotQuiet() | |
| .Execute("-v:m"); | ||
|
|
||
| cmd.Should().Pass() | ||
| .And.HaveStdOutContaining(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)) | ||
| .And.HaveStdErrContaining(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath)) | ||
| .And.HaveStdOutContaining("First"); | ||
|
|
||
| cmd.StdErr.Should().BeEmpty(); | ||
| } | ||
|
|
||
| [Fact] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ public void EnvironmentVariableExpansion_Project() | |
| .And.HaveStdOutContaining("TEST_VAR1=<<<VALUE1>>>") | ||
| .And.HaveStdOutContaining("ARGS=arg1,arg2,arg3"); | ||
|
|
||
| cmd.StdErr.Should().BeEmpty(); | ||
| cmd.StdErr.Should().Contain("Using launch settings from"); | ||
|
||
| } | ||
|
|
||
| [Fact] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.