Skip to content

Commit

Permalink
[Detection Engine] Adding second quality gate tags (#189659)
Browse files Browse the repository at this point in the history
## Summary

- Added second quality gate tags to some exception FTRs
- Unskipped one test that I couldn't get to flake (and ran through
flakey test runner)
- Added comment about adding suppression tests to second quality gate
once its GA
  • Loading branch information
yctercero authored Aug 6, 2024
1 parent 99cb9b7 commit e6e9b99
Show file tree
Hide file tree
Showing 38 changed files with 41 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ export default ({ getService }: FtrProviderContext) => {
await esArchiver.unload(path);
});

// FLAKY: https://github.com/elastic/kibana/issues/181887
describe.skip('creating rules with exceptions', () => {
describe('creating rules with exceptions', () => {
beforeEach(async () => {
await createAlertsIndex(supertest, log);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default ({ getService }: FtrProviderContext) => {
log,
});

// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless Alert Suppression for EQL rules', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/security_solution/ecs_compliant');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default ({ getService }: FtrProviderContext) => {
const getNonAggRuleQueryWithMetadata = (id: string) =>
`from ecs_compliant metadata _id, _index, _version ${internalIdPipe(id)}`;

// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless ES|QL rule type, alert suppression', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/security_solution/ecs_compliant');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export default ({ getService }: FtrProviderContext) => {
},
];

describe('@ess @serverless @serverlessQA Indicator match type rules, alert suppression', () => {
// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless Indicator match type rules, alert suppression', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/security_solution/ecs_compliant');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default ({ getService }: FtrProviderContext) => {
'user.name': ['root'],
};

// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless Machine Learning Detection Rule - Alert Suppression', () => {
describe('with an active ML Job', () => {
before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export default ({ getService }: FtrProviderContext) => {

const historicalWindowStart = '2019-10-13T05:00:04.000Z';

describe('@ess @serverless @serverlessQA New terms type rules, alert suppression', () => {
// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless New terms type rules, alert suppression', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/security_solution/ecs_compliant');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default ({ getService }: FtrProviderContext) => {
const dataPathBuilder = new EsArchivePathBuilder(isServerless);
const path = dataPathBuilder.getPath('auditbeat/hosts');

describe('@ess @serverless @serverlessQA Threshold type rules, alert suppression', () => {
// NOTE: Add to second quality gate after feature is GA
describe('@ess @serverless Threshold type rules, alert suppression', () => {
const { indexListOfDocuments, indexGeneratedDocuments } = dataGeneratorFactory({
es,
index: 'ecs_compliant',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless create_exception_list_items', () => {
describe('@ess @serverless @serverlessQA create_exception_list_items', () => {
describe('validation errors', () => {
it('should give a 404 error that the exception list must exist first before being able to add a list item to the exception list', async () => {
const { body } = await supertest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless delete_exception_list_items', () => {
describe('@ess @serverless @serverlessQA delete_exception_list_items', () => {
describe('delete exception list items', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless find_exception_list_items', () => {
describe('@ess @serverless @serverlessQA find_exception_list_items', () => {
describe('find exception list items', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless read_exception_list_items', () => {
describe('@ess @serverless @serverlessQA read_exception_list_items', () => {
describe('reading exception list items', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless update_exception_list_items', () => {
describe('@ess @serverless @serverlessQA update_exception_list_items', () => {
describe('update exception list items', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless create_exception_lists', () => {
describe('@ess @serverless @serverlessQA create_exception_lists', () => {
describe('creating exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless delete_exception_lists', () => {
describe('@ess @serverless @serverlessQA delete_exception_lists', () => {
describe('delete exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless duplicate_exception_lists', () => {
describe('@ess @serverless @serverlessQA duplicate_exception_lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default ({ getService }: FtrProviderContext): void => {
const supertest = getService('supertest');
const log = getService('log');

describe('@ess @serverless export_exception_list_route', () => {
describe('@ess @serverless @serverlessQA export_exception_list_route', () => {
describe('exporting exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default ({ getService }: FtrProviderContext): void => {
const supertest = getService('supertest');
const log = getService('log');

describe('@ess @serverless find_exception_lists', () => {
describe('@ess @serverless @serverlessQA find_exception_lists', () => {
describe('find exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default ({ getService }: FtrProviderContext): void => {
const supertest = getService('supertest');
const log = getService('log');

describe('@ess @serverless get_exception_filter', () => {
describe('@ess @serverless @serverlessQA get_exception_filter', () => {
describe('get exception filter', () => {
beforeEach(async () => {
await createListsIndex(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default ({ getService }: FtrProviderContext): void => {
const supertest = getService('supertest');
const log = getService('log');

describe('@ess @serverless import_exceptions', () => {
describe('@ess @serverless @serverlessQA import_exceptions', () => {
beforeEach(async () => {
await deleteAllExceptions(supertest, log);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless read_exception_lists', () => {
describe('@ess @serverless @serverlessQA read_exception_lists', () => {
describe('reading exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default ({ getService }: FtrProviderContext) => {
const supertest = getService('supertest');
const log = getService('log');

describe('@ess @serverless summary_exception_lists', () => {
describe('@ess @serverless @serverlessQA summary_exception_lists', () => {
describe('summary exception lists', () => {
beforeEach(async () => {
await createListsIndex(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless update_exception_lists', () => {
describe('@ess @serverless @serverlessQA update_exception_lists', () => {
describe('update exception lists', () => {
afterEach(async () => {
await deleteAllExceptions(supertest, log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless create_list_items', () => {
describe('@ess @serverless @serverlessQA create_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless delete_list_items', () => {
describe('@ess @serverless @serverlessQA delete_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless export_list_items', () => {
describe('@ess @serverless @serverlessQA export_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless find_list_items', () => {
describe('@ess @serverless @serverlessQA find_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless import_list_items', () => {
describe('@ess @serverless @serverlessQA import_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default ({ getService }: FtrProviderContext) => {
const retry = getService('retry');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless patch_list_items', () => {
describe('@ess @serverless @serverlessQA patch_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless read_list_items', () => {
describe('@ess @serverless @serverlessQA read_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default ({ getService }: FtrProviderContext) => {
const retry = getService('retry');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless update_list_items', () => {
describe('@ess @serverless @serverlessQA update_list_items', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless create_lists', () => {
describe('@ess @serverless @serverlessQA create_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless create_list_index_route', () => {
describe('@ess @serverless @serverlessQA create_list_index_route', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless delete_lists', () => {
describe('@ess @serverless @serverlessQA delete_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless find_lists', () => {
describe('@ess @serverless @serverlessQA find_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default ({ getService }: FtrProviderContext): void => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless find_lists_by_size', () => {
describe('@ess @serverless @serverlessQA find_lists_by_size', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ({ getService }: FtrProviderContext) => {
const retry = getService('retry');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless patch_lists', () => {
describe('@ess @serverless @serverlessQA patch_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ({ getService }: FtrProviderContext) => {
const log = getService('log');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless read_lists', () => {
describe('@ess @serverless @serverlessQA read_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default ({ getService }: FtrProviderContext) => {
const retry = getService('retry');
const utils = getService('securitySolutionUtils');

describe('@ess @serverless update_lists', () => {
describe('@ess @serverless @serverlessQA update_lists', () => {
let supertest: TestAgent;

before(async () => {
Expand Down

0 comments on commit e6e9b99

Please sign in to comment.