mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Security Solution] Fix PATCH rule API test failure in Serverless (#202885)
**Resolves: https://github.com/elastic/kibana/issues/202812** ## Summary This PR fixes a problem in the MKI Serverless periodic pipeline that was introduced in #201825. The issue happened because the test tried to delete prebuilt rule assets stored in .kibana_security_solution, but you can’t access this index in Serverless MKI. The fix makes sure this call only runs in non-Serverless MKI environments.
This commit is contained in:
parent
d754458aeb
commit
0e10dbfc81
1 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,6 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
describe('patch rules', () => {
|
||||
beforeEach(async () => {
|
||||
await deleteAllRules(supertest, log);
|
||||
await deleteAllPrebuiltRuleAssets(es, log);
|
||||
});
|
||||
|
||||
it('should patch a single rule property of name using a rule_id', async () => {
|
||||
|
@ -233,8 +232,8 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// Unskip: https://github.com/elastic/kibana/issues/195921
|
||||
it('@skipInServerlessMKI throws an error if rule has external rule source and non-customizable fields are changed', async () => {
|
||||
await deleteAllPrebuiltRuleAssets(es, log);
|
||||
// Install base prebuilt detection rule
|
||||
await createHistoricalPrebuiltRuleAssetSavedObjects(es, [
|
||||
createRuleAssetSavedObject({ rule_id: 'rule-1', author: ['elastic'] }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue