Skip to content

Conversation

@jkelas
Copy link
Contributor

@jkelas jkelas commented Sep 1, 2025

…ng non-customizable fields from updating for Prebuilt rule types (elastic#232956)

**Resolves: elastic#195921**

## Summary

I am modifying the skipped tests and unskipping them in MKI.

The first attempt of only relying on removing the call to
`refreshSavedObjectIndices` improved the situation for
`installPrebuiltRules` but another problem was that similar error with
privileges occurred for preparing the assets (reason under the hood
being the same).
The failing periodic pipeline build:
https://buildkite.com/elastic/kibana-serverless-security-solution-quality-gate-rule-management/builds/3265/steps/canvas

That is why I am replacing the logic of installing the rule for test.
Instead of creating assets I am building a zip with our fake rules and
calling the `installFleetPackageByUpload` function, as we already do in
other tests. This allows our test security_detection_engine package to
be installed the `official` way.
**The successful periodic pipeline build**:
https://buildkite.com/elastic/kibana-serverless-security-solution-quality-gate-rule-management/builds/3270/steps/canvas

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 6cde3f7)

# Conflicts:
#	x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/index.ts
@jkelas jkelas merged commit 1aeb2d1 into elastic:9.0 Sep 1, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants