[Osquery] Unskip add_integration.cy.ts (#180733)

This commit is contained in:
Tomasz Ciecierski 2024-04-15 13:33:10 +02:00 committed by GitHub
parent abb8f6bb31
commit 59edae292c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 12 deletions

View file

@ -39,10 +39,7 @@ import {
} from '../../tasks/integrations';
import { ServerlessRoleName } from '../../support/roles';
// Failing: See https://github.com/elastic/kibana/issues/170445
// Failing: See https://github.com/elastic/kibana/issues/169701
// Failing: See https://github.com/elastic/kibana/issues/170593
describe.skip('ALL - Add Integration', { tags: ['@ess', '@serverless'] }, () => {
describe('ALL - Add Integration', { tags: ['@ess', '@serverless'] }, () => {
let savedQueryId: string;
before(() => {
@ -77,8 +74,7 @@ describe.skip('ALL - Add Integration', { tags: ['@ess', '@serverless'] }, () =>
}
);
// FLAKY: https://github.com/elastic/kibana/issues/169701
describe.skip('Add and upgrade integration', { tags: ['@ess', '@serverless'] }, () => {
describe('Add and upgrade integration', { tags: ['@ess', '@serverless'] }, () => {
const oldVersion = '0.7.4';
const [integrationName, policyName] = generateRandomStringName(2);
let policyId: string;
@ -107,8 +103,7 @@ describe.skip('ALL - Add Integration', { tags: ['@ess', '@serverless'] }, () =>
cy.contains(`version: ${oldVersion}`).should('not.exist');
});
});
// FLAKY: https://github.com/elastic/kibana/issues/170593
describe.skip('Add integration to policy', () => {
describe('Add integration to policy', () => {
const [integrationName, policyName] = generateRandomStringName(2);
let policyId: string;
beforeEach(() => {
@ -148,8 +143,7 @@ describe.skip('ALL - Add Integration', { tags: ['@ess', '@serverless'] }, () =>
});
});
// FLAKY: https://github.com/elastic/kibana/issues/170445
describe.skip('Upgrade policy with existing packs', () => {
describe('Upgrade policy with existing packs', () => {
const oldVersion = '1.2.0';
const [policyName, integrationName, packName] = generateRandomStringName(3);
let policyId: string;

View file

@ -162,9 +162,9 @@ export const installPackageWithVersion = (integration: string, version: string)
};
const extractSemanticVersion = (str: string) => {
const match = str.match(/(\d+\.\d+\.\d+)/);
const match = str.match(/(Managerv\d+\.\d+\.\d+)/);
if (match && match[1]) {
return match[1];
return match[1].replace('Managerv', '');
} else {
return null; // Return null if no match found
}