Skip to content

Commit

Permalink
Fix e2e tests cert issue (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft authored Apr 29, 2020
1 parent eac0b67 commit dc48bac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AppInstallerCLIE2ETests/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class Constants
public const string AppInstallerTestCertThumbprint = "d03e7a688b388b1edde8476a627531c49db88017";

// Todo: not needed if switch to use prod index for source tests
public const string IndexPackageCert = "IndexPackageInt.cer";
public const string IndexPackageCertThumbprint = "1da968e670a0257f61628aad20c60c64fdecd41a";
public const string IndexPackageRootCert = "IndexPackageIntRoot.cer";
public const string IndexPackageRootCertThumbprint = "d17697cc206ed26e1a51f5bb96e9356d6d610b74";

public const string AICLIPackageFamilyName = "AppInstallerCLI_8wekyb3d8bbwe";
public const string AICLIPackageName = "AppInstallerCLI";
Expand Down
4 changes: 2 additions & 2 deletions src/AppInstallerCLIE2ETests/SetUpFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void Setup()
ShouldDisableDevModeOnExit = EnableDevMode(true);

Assert.True(TestCommon.RunCommand("certutil.exe", "-addstore -f \"TRUSTEDPEOPLE\" " + TestCommon.GetTestDataFile(Constants.AppInstallerTestCert)));
Assert.True(TestCommon.RunCommand("certutil.exe", "-addstore -f \"TRUSTEDPEOPLE\" " + TestCommon.GetTestDataFile(Constants.IndexPackageCert)));
Assert.True(TestCommon.RunCommand("certutil.exe", "-addstore -f \"ROOT\" " + TestCommon.GetTestDataFile(Constants.IndexPackageRootCert)));

if (TestCommon.PackagedContext)
{
Expand All @@ -88,7 +88,7 @@ public void TearDown()
}

TestCommon.RunCommand("certutil.exe", $"-delstore \"TRUSTEDPEOPLE\" {Constants.AppInstallerTestCertThumbprint}");
TestCommon.RunCommand("certutil.exe", $"-delstore \"TRUSTEDPEOPLE\" {Constants.IndexPackageCertThumbprint}");
TestCommon.RunCommand("certutil.exe", $"-delstore \"ROOT\" {Constants.IndexPackageRootCertThumbprint}");

if (TestCommon.PackagedContext)
{
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit dc48bac

Please sign in to comment.