Skip to content

Commit

Permalink
Debug flaky tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Feb 10, 2021
2 parents f94aace + 4c2c871 commit b5a7974
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const supertest = getService('supertest');

// FLAKY: https://github.com/elastic/kibana/issues/90552
describe.skip('DELETE /api/saved_objects_tagging/tags/{id}', () => {
describe('DELETE /api/saved_objects_tagging/tags/{id}', () => {
beforeEach(async () => {
await esArchiver.load('delete_with_references');
});
Expand All @@ -24,9 +23,15 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should delete the tag', async () => {
await supertest.get(`/api/saved_objects_tagging/tags/tag-1`).expect(200);

await supertest.delete(`/api/saved_objects_tagging/tags/tag-1`).expect(200);
const getRes = await supertest.get(`/api/saved_objects_tagging/tags/tag-1`);
// eslint-disable-next-line no-console
console.trace('%O', getRes.body);
expect(getRes.status).to.eql(200);

const delRes = await supertest.delete(`/api/saved_objects_tagging/tags/tag-1`);
// eslint-disable-next-line no-console
console.trace('%O', delRes.body);
expect(delRes.status).to.eql(200);

await supertest.get(`/api/saved_objects_tagging/tags/tag-1`).expect(404);
});
Expand Down

0 comments on commit b5a7974

Please sign in to comment.