Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow packages without service deployer to have system tests #1768

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

jsoriano
Copy link
Member

This will allow to leverage the new custom definitions added in #1765, without forcing the packages to define a service deployer.

This is useful when the only requirement to test the package is a running agent, for example when collecting information from the system where it is running.

Part of #787

@jsoriano jsoriano requested a review from a team April 12, 2024 17:15
@jsoriano jsoriano self-assigned this Apr 12, 2024
internal/agentdeployer/factory.go Outdated Show resolved Hide resolved
internal/agentdeployer/factory.go Outdated Show resolved Hide resolved
internal/agentdeployer/factory.go Outdated Show resolved Hide resolved
internal/servicedeployer/factory.go Outdated Show resolved Hide resolved
internal/testrunner/runners/system/runner.go Outdated Show resolved Hide resolved
@@ -0,0 +1,36 @@
format_version: 3.1.3
name: test_without_service_deployer
title: "Package with system tests and no service deployer."
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the system test config , this package looks like the log input package from the integrations repository.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is basically the vanilla package created with elastic-package create package, with the system test and some additional fields.

@jsoriano
Copy link
Member Author

Thanks @mrodm for the review!

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

Thanks!

@jsoriano jsoriano merged commit 1f977e2 into elastic:main Apr 15, 2024
3 checks passed
@jsoriano jsoriano deleted the package-without-service-deployer branch April 15, 2024 09:44
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