Skip to content

Commit

Permalink
Failing ES Promotion: FTR Configs elastic#22 / detection engine api s…
Browse files Browse the repository at this point in the history
…ecurity and spaces enabled - rule execution logic Non ECS fields in alert document source should fail creating alert when ECS field mapping is geo_point (elastic#154277)
  • Loading branch information
e40pud committed Jul 19, 2023
1 parent 9c7dda0 commit 527c2e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default ({ getService }: FtrProviderContext) => {
};

// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/154277
describe.skip('Non ECS fields in alert document source', () => {
describe('Non ECS fields in alert document source', () => {
before(async () => {
await esArchiver.load(
'x-pack/test/functional/es_archives/security_solution/ecs_non_compliant'
Expand Down Expand Up @@ -232,7 +232,7 @@ export default ({ getService }: FtrProviderContext) => {
// invalid ECS field is getting removed
expect(alertSource).toHaveProperty('threat.enrichments', []);

expect(alertSource).toHaveProperty('threat.indicator.port', 443);
expect(alertSource).toHaveProperty(['threat', 'indicator.port'], 443);
});

// source client.bytes is text, ECS mapping for client.bytes is long
Expand Down Expand Up @@ -271,8 +271,8 @@ export default ({ getService }: FtrProviderContext) => {

const { errors } = await indexAndCreatePreviewAlert(document);

expect(errors).toContain(
'Bulk Indexing of signals failed: failed to parse field [client.geo.location] of type [geo_point]'
expect(errors[0]).toContain(
'Bulk Indexing of signals failed: [1:1193] failed to parse field [client.geo.location] of type [geo_point]'
);
});

Expand Down

0 comments on commit 527c2e9

Please sign in to comment.