Skip to content

Commit

Permalink
Revert "Fix e2e tests"
Browse files Browse the repository at this point in the history
This reverts commit dc39cd8.
  • Loading branch information
yao-msft committed Apr 25, 2024
1 parent dc39cd8 commit 3359bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 1 addition & 5 deletions src/AppInstallerCLIE2ETests/SourceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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"));

Expand Down

0 comments on commit 3359bbc

Please sign in to comment.