winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cfd20d631da06f3586cc1e41a39a6815b8c894f0
parent ba2d1eb1845dfcd9c6efd579dcaa72ed9579114d
Author: JohnMcPMS <johnmcp@microsoft.com>
Date:   Tue, 23 Jun 2020 12:45:23 -0700

Always use the configured source for show E2E tests (#453)


Diffstat:
Msrc/AppInstallerCLIE2ETests/ShowCommand.cs | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/AppInstallerCLIE2ETests/ShowCommand.cs b/src/AppInstallerCLIE2ETests/ShowCommand.cs @@ -30,32 +30,32 @@ namespace AppInstallerCLIE2ETests public void ShowCommands() { // Show with no arg lists every app and a warning message - var result = TestCommon.RunAICLICommand("show", ""); + var result = TestCommon.RunAICLICommand("show", $"-s {ShowTestSourceName}"); Assert.AreEqual(Constants.ErrorCode.ERROR_MULTIPLE_APPLICATIONS_FOUND, result.ExitCode); Assert.True(result.StdOut.Contains("Multiple apps found matching input criteria. Please refine the input.")); Assert.True(result.StdOut.Contains("Microsoft.PowerToys")); Assert.True(result.StdOut.Contains("Microsoft.VisualStudioCode")); // Show with multiple search matches shows a "please refine input" - result = TestCommon.RunAICLICommand("show", "Microsoft"); + result = TestCommon.RunAICLICommand("show", $"Microsoft -s {ShowTestSourceName}"); Assert.AreEqual(Constants.ErrorCode.ERROR_MULTIPLE_APPLICATIONS_FOUND, result.ExitCode); Assert.True(result.StdOut.Contains("Multiple apps found matching input criteria. Please refine the input.")); Assert.True(result.StdOut.Contains("Microsoft.PowerToys")); Assert.True(result.StdOut.Contains("Microsoft.VisualStudioCode")); // Show with 0 search match shows a "please refine input" - result = TestCommon.RunAICLICommand("show", "DoesNotExist"); + result = TestCommon.RunAICLICommand("show", $"DoesNotExist -s {ShowTestSourceName}"); Assert.AreEqual(Constants.ErrorCode.ERROR_NO_APPLICATIONS_FOUND, result.ExitCode); Assert.True(result.StdOut.Contains("No app found matching input criteria.")); // Show with 1 search match shows detailed manifest info - result = TestCommon.RunAICLICommand("show", "VisualStudioCode"); + result = TestCommon.RunAICLICommand("show", $"VisualStudioCode -s {ShowTestSourceName}"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Microsoft.VisualStudioCode")); Assert.True(result.StdOut.Contains("Visual Studio Code")); // Show with --versions list the versions - result = TestCommon.RunAICLICommand("show", "VisualStudioCode --versions"); + result = TestCommon.RunAICLICommand("show", $"VisualStudioCode --versions -s {ShowTestSourceName}"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Microsoft.VisualStudioCode")); Assert.True(result.StdOut.Contains("1.41.1"));