Skip to content

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Sep 9, 2025

This PR creates a new function to create all required Kibana Policies for system tests:

  • Policy for enrolling purposes or the current policy if it is used system tests by stages
  • Policy for testing purposes

This new function also creates the required handlers to delete these Kibana Policies.

@mrodm mrodm self-assigned this Sep 9, 2025
}

func (r *tester) checkDeprecationWarnings(stackVersion *semver.Version, dataStream string, warnings []deprecationWarning, configName string) []testrunner.TestResult {
func (r *tester) checkDeprecationWarnings(stackVersion *semver.Version, warnings []deprecationWarning, configName string) []testrunner.TestResult {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused dataStream parameter

}

func (r *tester) checkTransforms(ctx context.Context, config *testConfig, pkgManifest *packages.PackageManifest, ds kibana.PackageDataStream, dataStream string, syntheticEnabled bool) error {
func (r *tester) checkTransforms(ctx context.Context, config *testConfig, pkgManifest *packages.PackageManifest, dataStream string, syntheticEnabled bool) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed unused ds parameter.

@mrodm
Copy link
Contributor Author

mrodm commented Sep 9, 2025

test integrations

@elastic-vault-github-plugin-prod

Created or updated PR in integrations repository to test this version. Check elastic/integrations#15252

@mrodm mrodm marked this pull request as ready for review September 9, 2025 14:21
@mrodm mrodm requested a review from a team September 9, 2025 14:21
@mrodm mrodm marked this pull request as draft September 9, 2025 15:04
@mrodm
Copy link
Contributor Author

mrodm commented Sep 9, 2025

Setting this PR as draft to double check about the policies returned by the new function.

@mrodm
Copy link
Contributor Author

mrodm commented Sep 9, 2025

test integrations

@elastic-vault-github-plugin-prod

Created or updated PR in integrations repository to test this version. Check elastic/integrations#15252

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm marked this pull request as ready for review September 10, 2025 08:12
@mrodm mrodm merged commit c74420b into elastic:main Sep 11, 2025
3 checks passed
@mrodm mrodm deleted the refactor_create_kibana_policies branch September 11, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants