Skip to content

Commit

Permalink
Increasing default api key removalDelay to 1h (#85576)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
ymao1 and kibanamachine committed Dec 14, 2020
1 parent a22b397 commit f8ad901
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('config validation', () => {
},
"invalidateApiKeysTask": Object {
"interval": "5m",
"removalDelay": "5m",
"removalDelay": "1h",
},
}
`);
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
}),
});

Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/alerts/server/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);
Expand Down Expand Up @@ -124,7 +124,7 @@ describe('Alerting Plugin', () => {
},
invalidateApiKeysTask: {
interval: '5m',
removalDelay: '5m',
removalDelay: '1h',
},
});
const plugin = new AlertingPlugin(context);
Expand Down

0 comments on commit f8ad901

Please sign in to comment.