Skip to content

Commit

Permalink
[Osquery] Unskip add_integration.cy.ts (#180733)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsonpl authored Apr 15, 2024
1 parent abb8f6b commit 59edae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions x-pack/plugins/osquery/cypress/e2e/all/add_integration.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/osquery/cypress/tasks/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 59edae2

Please sign in to comment.