[Security Solution][Case] Fix patch cases integration test with alerts (#88311)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
2abbd808c7
commit
f7fdda5db7
|
@ -35,9 +35,7 @@ export default ({ getService }: FtrProviderContext): void => {
|
||||||
const esArchiver = getService('esArchiver');
|
const esArchiver = getService('esArchiver');
|
||||||
const es = getService('es');
|
const es = getService('es');
|
||||||
|
|
||||||
// Failing: See https://github.com/elastic/kibana/issues/88130
|
describe('patch_cases', () => {
|
||||||
// FLAKY: https://github.com/elastic/kibana/issues/87988
|
|
||||||
describe.skip('patch_cases', () => {
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await deleteCases(es);
|
await deleteCases(es);
|
||||||
await deleteCasesUserActions(es);
|
await deleteCasesUserActions(es);
|
||||||
|
@ -277,7 +275,8 @@ export default ({ getService }: FtrProviderContext): void => {
|
||||||
await esArchiver.unload('auditbeat/hosts');
|
await esArchiver.unload('auditbeat/hosts');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('updates alert status when the status is updated and syncAlerts=true', async () => {
|
// FLAKY: https://github.com/elastic/kibana/issues/87988
|
||||||
|
it.skip('updates alert status when the status is updated and syncAlerts=true', async () => {
|
||||||
const rule = getRuleForSignalTesting(['auditbeat-*']);
|
const rule = getRuleForSignalTesting(['auditbeat-*']);
|
||||||
|
|
||||||
const { body: postedCase } = await supertest
|
const { body: postedCase } = await supertest
|
||||||
|
@ -377,7 +376,8 @@ export default ({ getService }: FtrProviderContext): void => {
|
||||||
expect(updatedAlert.hits.hits[0]._source.signal.status).eql('open');
|
expect(updatedAlert.hits.hits[0]._source.signal.status).eql('open');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('it updates alert status when syncAlerts is turned on', async () => {
|
// Failing: See https://github.com/elastic/kibana/issues/88130
|
||||||
|
it.skip('it updates alert status when syncAlerts is turned on', async () => {
|
||||||
const rule = getRuleForSignalTesting(['auditbeat-*']);
|
const rule = getRuleForSignalTesting(['auditbeat-*']);
|
||||||
|
|
||||||
const { body: postedCase } = await supertest
|
const { body: postedCase } = await supertest
|
||||||
|
|
Loading…
Reference in a new issue