mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Unskip APM API tests and fix flaky tests (#168080)
This commit is contained in:
parent
efa4e76203
commit
5d660f900f
4 changed files with 25 additions and 13 deletions
|
@ -32,6 +32,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
const registry = getService('registry');
|
||||
const supertest = getService('supertest');
|
||||
const es = getService('es');
|
||||
const logger = getService('log');
|
||||
const apmApiClient = getService('apmApiClient');
|
||||
const synthtraceEsClient = getService('synthtraceEsClient');
|
||||
|
||||
|
@ -133,9 +134,13 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
try {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
} catch (e) {
|
||||
logger.info('Could not delete rule or action connector', e);
|
||||
}
|
||||
});
|
||||
|
||||
it('checks if rule is active', async () => {
|
||||
|
|
|
@ -32,6 +32,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
const registry = getService('registry');
|
||||
const supertest = getService('supertest');
|
||||
const es = getService('es');
|
||||
const logger = getService('log');
|
||||
const apmApiClient = getService('apmApiClient');
|
||||
const synthtraceEsClient = getService('synthtraceEsClient');
|
||||
|
||||
|
@ -106,9 +107,13 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
try {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
} catch (e) {
|
||||
logger.info('Could not delete rule or action connector', e);
|
||||
}
|
||||
});
|
||||
|
||||
it('checks if rule is active', async () => {
|
||||
|
|
|
@ -32,6 +32,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
const registry = getService('registry');
|
||||
const supertest = getService('supertest');
|
||||
const es = getService('es');
|
||||
const logger = getService('log');
|
||||
const apmApiClient = getService('apmApiClient');
|
||||
const synthtraceEsClient = getService('synthtraceEsClient');
|
||||
|
||||
|
@ -116,9 +117,13 @@ export default function ApiTest({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
after(async () => {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
try {
|
||||
await deleteActionConnector({ supertest, es, actionId });
|
||||
await deleteRuleById({ supertest, ruleId });
|
||||
await deleteAlertsByRuleId({ es, ruleId });
|
||||
} catch (e) {
|
||||
logger.info('Could not delete rule or action connector', e);
|
||||
}
|
||||
});
|
||||
|
||||
it('checks if rule is active', async () => {
|
||||
|
|
|
@ -26,10 +26,7 @@ function getGlobPattern() {
|
|||
export default function apmApiIntegrationTests({ getService, loadTestFile }: FtrProviderContext) {
|
||||
const registry = getService('registry');
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/167973
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/167974
|
||||
// Failing: See https://github.com/elastic/kibana/issues/167975
|
||||
describe.skip('APM API tests', function () {
|
||||
describe('APM API tests', function () {
|
||||
const filePattern = getGlobPattern();
|
||||
const tests = globby.sync(filePattern, { cwd });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue