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

[testing] add estools from elastic agent as part of this repo #265

Merged
merged 9 commits into from
Jan 7, 2025

Conversation

khushijain21
Copy link
Contributor

@khushijain21 khushijain21 commented Jan 6, 2025

Relates #4595

Adds estools from elastic-agent to reuse its methods in beats (for E2E testing)

It also adds a new method to query all documents in a given Index. Check GetAllLogsForIndexWithContext

@khushijain21 khushijain21 requested a review from a team as a code owner January 6, 2025 13:16
@khushijain21 khushijain21 requested review from rdner and faec and removed request for a team January 6, 2025 13:16
}

// GetAllLogsForIndexWithContext returns all logs for a given index
func GetAllLogsForIndexWithContext(ctx context.Context, client elastictransport.Interface, index string) (Documents, 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.

This is a new method introduced here

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@khushijain21 khushijain21 merged commit a3b3db0 into elastic:main Jan 7, 2025
7 checks passed
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