Skip to content

Commit

Permalink
Merge branch 'main' into maximizing-serverless-coverage/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema authored Oct 9, 2023
2 parents de0a07b + fb23474 commit e24ab03
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 2,030 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ const getIdReference = (references) => {
}
};

const isCurrentData = (mitreObj) => !mitreObj.revoked && !mitreObj.x_mitre_deprecated;

const extractTacticsData = (mitreData) => {
const tactics = mitreData
.filter((obj) => obj.type === 'x-mitre-tactic')
Expand Down Expand Up @@ -115,7 +117,8 @@ const extractTechniques = (mitreData) => {
.filter(
(obj) =>
obj.type === 'attack-pattern' &&
(obj.x_mitre_is_subtechnique === false || obj.x_mitre_is_subtechnique === undefined)
(obj.x_mitre_is_subtechnique === false || obj.x_mitre_is_subtechnique === undefined) &&
isCurrentData(obj)
)
.reduce((acc, item) => {
let tactics = [];
Expand All @@ -142,7 +145,7 @@ const extractTechniques = (mitreData) => {

const extractSubtechniques = (mitreData) => {
const subtechniques = mitreData
.filter((obj) => obj.x_mitre_is_subtechnique === true)
.filter((obj) => obj.x_mitre_is_subtechnique === true && isCurrentData(obj))
.reduce((acc, item) => {
let tactics = [];
const { id, reference } = getIdReference(item.external_references);
Expand Down
143 changes: 0 additions & 143 deletions x-pack/plugins/translations/translations/fr-FR.json

Large diffs are not rendered by default.

143 changes: 0 additions & 143 deletions x-pack/plugins/translations/translations/ja-JP.json

Large diffs are not rendered by default.

143 changes: 0 additions & 143 deletions x-pack/plugins/translations/translations/zh-CN.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default ({ getService }: FtrProviderContext) => {
});
});

describe('init api', () => {
// FLAKY: https://github.com/elastic/kibana/issues/168376
describe.skip('init api', () => {
it('should return response with success status', async () => {
const response = await riskEngineRoutes.init();
expect(response.body).to.eql({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const deleteDataStream = (dataStreamName: string) => {
});
};

export const deleteAllDocuments = (target: string) =>
export const deleteAllDocuments = (target: string) => {
refreshIndex(target);

rootRequest({
method: 'POST',
url: `${Cypress.env(
Expand All @@ -49,6 +51,7 @@ export const deleteAllDocuments = (target: string) =>
},
},
});
};

export const createIndex = (indexName: string, properties: Record<string, unknown>) =>
rootRequest({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function ({ getService }: FtrProviderContext) {
const endpointTestResources = getService('endpointTestResources');
const log = getService('log');

describe('test metadata apis', () => {
// FLAKY: https://github.com/elastic/kibana/issues/151854
describe.skip('test metadata apis', () => {
describe('list endpoints GET route', () => {
const numberOfHostsInFixture = 2;
let agent1Timestamp: number;
Expand Down

0 comments on commit e24ab03

Please sign in to comment.