WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
The tests use test certificates for codesigning and for HTTPS with the localhost server. These test certificates were stored as secure files in the pipelines.
This PR changes the test pipeline to generate the certificates on each run so that we don't need to create new certificates when they expire, or if we want to recreate the pipelines in a different ADO account.
Added pipeline steps to create/install the test certificates for codesigning and HTTPS. The scripts export the path and password (a GUID) as pipeline variables for use in subsequent tasks
The E2E setup is removed from the build job, and now is only performed in the test job. This way, we don't have to preserve the certificate and its password as an artifact between jobs.
Removed unnecessary BinSkim task (already included in official pipelines)
Standardized the location of all test installers used for E2E tests to a single folder in the artifacts (before they are used to create the local index)
Removed unused certificates from the code (unrelated to the ones being replaced)
Updated hash tests that were using the existing certificates to use a different file, as the cert is no longer constant
Added collection of the logs from the localhost server and index creation; this requires stopping the server after it is used
Updated test execution to use path to the local index used in the test job, instead of one from the build artifacts
The tests use test certificates for codesigning and for HTTPS with the localhost server. These test certificates were stored as secure files in the pipelines.
This PR changes the test pipeline to generate the certificates on each run so that we don't need to create new certificates when they expire, or if we want to recreate the pipelines in a different ADO account.
Microsoft Reviewers: Open in CodeFlow