winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dc48bac09740488e8802f1a274e48a486c32d75b
parent eac0b6718df18dd714d9ff6a709d7b54f2e5fe2f
Author: yao-msft <50888816+yao-msft@users.noreply.github.com>
Date:   Wed, 29 Apr 2020 15:31:37 -0700

Fix e2e tests cert issue (#94)


Diffstat:
Msrc/AppInstallerCLIE2ETests/Constants.cs | 4++--
Msrc/AppInstallerCLIE2ETests/SetUpFixture.cs | 4++--
Dsrc/AppInstallerCLIE2ETests/TestData/IndexPackageInt.cer | 0
Asrc/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer | 0
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/AppInstallerCLIE2ETests/Constants.cs b/src/AppInstallerCLIE2ETests/Constants.cs @@ -17,8 +17,8 @@ namespace AppInstallerCLIE2ETests 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 @@ -63,7 +63,7 @@ namespace AppInstallerCLIE2ETests 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 @@ namespace AppInstallerCLIE2ETests } 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 Binary files differ. diff --git a/src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer b/src/AppInstallerCLIE2ETests/TestData/IndexPackageIntRoot.cer Binary files differ.