mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Reenable endpoint tests to debug in CI
* Revert removal of skip in trusted apps
* Try enabling Fleet debug logs
* Fix missing archive path in bundled packages
* Remove Fleet debug logs in endpoint tests
* Reenable endpoint suites
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d9d10f2cbb
)
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
This commit is contained in:
parent
42bc2eb40b
commit
5db45c6bac
1 changed files with 10 additions and 1 deletions
|
@ -246,6 +246,7 @@ export async function getInfo(name: string, version: string) {
|
|||
// input type packages must get their pkg info from the archive
|
||||
if (packageInfo.type === 'integration') setPackageInfo({ name, version, packageInfo });
|
||||
}
|
||||
|
||||
return packageInfo as RegistryPackage;
|
||||
});
|
||||
}
|
||||
|
@ -325,9 +326,17 @@ export async function fetchArchiveBuffer({
|
|||
verificationResult?: PackageVerificationResult;
|
||||
}> {
|
||||
const logger = appContextService.getLogger();
|
||||
const { download: archivePath } = await getInfo(pkgName, pkgVersion);
|
||||
let { download: archivePath } = await getInfo(pkgName, pkgVersion);
|
||||
|
||||
// Bundled packages don't have a download path when they're installed, as they're
|
||||
// ArchivePackage objects - so we fake the download path here instead
|
||||
if (!archivePath) {
|
||||
archivePath = `/epr/${pkgName}/${pkgName}-${pkgVersion}.zip`;
|
||||
}
|
||||
|
||||
const archiveUrl = `${getRegistryUrl()}${archivePath}`;
|
||||
const archiveBuffer = await getResponseStream(archiveUrl).then(streamToBuffer);
|
||||
|
||||
if (shouldVerify) {
|
||||
const verificationResult = await verifyPackageArchiveSignature({
|
||||
pkgName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue