Increasing default api key removalDelay to 1h (#85576)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
ymao1 2020-12-14 07:58:32 -05:00 committed by GitHub
parent fbb83af63d
commit ab07a003d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ describe('config validation', () => {
},
"invalidateApiKeysTask": Object {
"interval": "5m",
"removalDelay": "5m",
"removalDelay": "1h",
},
}
`);

View file

@ -13,7 +13,7 @@ export const configSchema = schema.object({
}),
invalidateApiKeysTask: schema.object({
interval: schema.string({ validate: validateDurationSchema, defaultValue: '5m' }),
removalDelay: schema.string({ validate: validateDurationSchema, defaultValue: '5m' }),
removalDelay: schema.string({ validate: validateDurationSchema, defaultValue: '1h' }),
}),
});

View file

@ -24,7 +24,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);
@ -73,7 +73,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);
@ -124,7 +124,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);