From 3359bbca56545ad3d244deb72058eba9bc2809c3 Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Wed, 24 Apr 2024 20:45:01 -0700 Subject: [PATCH] Revert "Fix e2e tests" This reverts commit dc39cd85817720828e3577b9784c19e168b21ab4. --- src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs | 2 +- src/AppInstallerCLIE2ETests/SourceCommand.cs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs b/src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs index 8c5c20ec58..c5c7d290a4 100644 --- a/src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs +++ b/src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs @@ -709,7 +709,7 @@ public static void SetupTestSource(bool useGroupPolicyForTestSource = false) else { GroupPolicyHelper.EnableAdditionalSources.SetNotConfigured(); - RunAICLICommand("source add", $"{Constants.TestSourceName} {Constants.TestSourceUrl} --trust-level trusted"); + RunAICLICommand("source add", $"{Constants.TestSourceName} {Constants.TestSourceUrl}"); } Thread.Sleep(2000); diff --git a/src/AppInstallerCLIE2ETests/SourceCommand.cs b/src/AppInstallerCLIE2ETests/SourceCommand.cs index b2e5233ef8..128a1b4678 100644 --- a/src/AppInstallerCLIE2ETests/SourceCommand.cs +++ b/src/AppInstallerCLIE2ETests/SourceCommand.cs @@ -29,10 +29,6 @@ public void Setup() [Test] public void SourceAdd() { - // TODO: Our test source package is being rejected by SmartScreen on the build server. - // Reenable when SmartScreen issue is solved or removed. - Assert.Ignore(); - var result = TestCommon.RunAICLICommand("source add", $"SourceTest {Constants.TestSourceUrl}"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Done")); @@ -76,7 +72,7 @@ public void SourceAddWithExplicit() // Remove the test source. TestCommon.RunAICLICommand("source remove", "TestSource"); - var result = TestCommon.RunAICLICommand("source add", $"SourceTest {Constants.TestSourceUrl} --trust-level trusted --explicit"); + var result = TestCommon.RunAICLICommand("source add", $"SourceTest {Constants.TestSourceUrl} --explicit"); Assert.AreEqual(Constants.ErrorCode.S_OK, result.ExitCode); Assert.True(result.StdOut.Contains("Done"));