diff --git a/src/AppInstallerCLIE2ETests/Constants.cs b/src/AppInstallerCLIE2ETests/Constants.cs index 71ff10e33a..5ed84ad6f3 100644 --- a/src/AppInstallerCLIE2ETests/Constants.cs +++ b/src/AppInstallerCLIE2ETests/Constants.cs @@ -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"; diff --git a/src/AppInstallerCLIE2ETests/SetUpFixture.cs b/src/AppInstallerCLIE2ETests/SetUpFixture.cs index ec904b8b53..1bfe3b82f2 100644 --- a/src/AppInstallerCLIE2ETests/SetUpFixture.cs +++ b/src/AppInstallerCLIE2ETests/SetUpFixture.cs @@ -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) { @@ -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) { diff --git a/src/AppInstallerCLIE2ETests/TestData/IndexPackageInt.cer b/src/AppInstallerCLIE2ETests/TestData/IndexPackageInt.cer deleted file mode 100644 index 113b12849e..0000000000 Binary files a/src/AppInstallerCLIE2ETests/TestData/IndexPackageInt.cer and /dev/null differ diff --git a/src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer b/src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer new file mode 100644 index 0000000000..4177d302bb Binary files /dev/null and b/src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer differ