[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:
Christos Nasikas 2021-01-18 09:59:26 +02:00 committed by GitHub
parent 2abbd808c7
commit f7fdda5db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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