From dc48bac09740488e8802f1a274e48a486c32d75b Mon Sep 17 00:00:00 2001 From: yao-msft <50888816+yao-msft@users.noreply.github.com> Date: Wed, 29 Apr 2020 15:31:37 -0700 Subject: [PATCH] Fix e2e tests cert issue (#94) --- src/AppInstallerCLIE2ETests/Constants.cs | 4 ++-- src/AppInstallerCLIE2ETests/SetUpFixture.cs | 4 ++-- .../TestData/IndexPackageInt.cer | Bin 1685 -> 0 bytes .../TestData/IndexPackageIntRoot.cer | Bin 0 -> 1460 bytes 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/AppInstallerCLIE2ETests/TestData/IndexPackageInt.cer create mode 100644 src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer 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 113b12849e88139bc3e0c1bfb61d22bae1ce9d1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1685 zcmXqLVw-5t#8SC{nTe5!NjRLLWo_VR@s+-3d$)QpFoJjnylk9WZ60mkc^MhGSs4sO z4TTK^*_cCFn1#7~gFQnOoE;US3=QPOc?~TM%nVG842;c;45P$(jSPTX6DZf9vBQwt zfD@#TO_(V(7-k5EFjshDaYklddP#nsp@0D&NCmqvdr)dhZhl^hp`3vXNQ6sR)HgG^ zD8D#Atwg~&zo;O;D6u3Hr~_yT#4VawVrzREe+?qgY7k1x{~iG zG%Xf9>_2hdH%8ZJC*iQqPuQ$vQ`|njc{bmoVq;3f<>^K*^&Bpk=w0xhc_Pzz`lbo5 z70cs7{x+`6G7tWF{Ks$ZM?KPW-=4@kznO`dk%4h>6H|&o6H|f#H!yr<`B_+)nb;c) zgh3ot79ImGHV$nzMpjmKW@ZCfkRTt67>h`T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