Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SECURITY_SOLUTION] Retry on ingest setup #75000

Merged
merged 2 commits into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function (providerContext: FtrProviderContext) {
this.tags('ciGroup7');
const ingestManager = getService('ingestManager');
const log = getService('log');
const retry = getService('retry');

if (!isRegistryEnabled()) {
log.warning('These tests are being run with an external package registry');
Expand All @@ -26,7 +27,9 @@ export default function (providerContext: FtrProviderContext) {
log.info(`Package registry URL for tests: ${registryUrl}`);

before(async () => {
await ingestManager.setup();
await retry.try(async () => {
await ingestManager.setup();
});
});
loadTestFile(require.resolve('./endpoint_list'));
loadTestFile(require.resolve('./policy_details'));
Expand Down
5 changes: 4 additions & 1 deletion x-pack/test/security_solution_endpoint_api_int/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function endpointAPIIntegrationTests(providerContext: FtrProvider

describe('Endpoint plugin', function () {
const ingestManager = getService('ingestManager');
const retry = getService('retry');

this.tags('ciGroup7');
const log = getService('log');
Expand All @@ -24,7 +25,9 @@ export default function endpointAPIIntegrationTests(providerContext: FtrProvider
log.info(`Package registry URL for tests: ${registryUrl}`);

before(async () => {
await ingestManager.setup();
await retry.try(async () => {
await ingestManager.setup();
});
});
loadTestFile(require.resolve('./resolver/index'));
loadTestFile(require.resolve('./metadata'));
Expand Down