[EDR Workflows][Osquery] Add API integration test coverage#249338
Merged
szwarckonrad merged 11 commits intoelastic:mainfrom Jan 20, 2026
Merged
[EDR Workflows][Osquery] Add API integration test coverage#249338szwarckonrad merged 11 commits intoelastic:mainfrom
szwarckonrad merged 11 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
…warckonrad/kibana into osquery-api-integration-tests
Contributor
⏳ Build in-progress, with failures
Failed CI StepsHistory
|
dmlemeshko
approved these changes
Jan 16, 2026
Contributor
dmlemeshko
left a comment
There was a problem hiding this comment.
x-pack/platform/test/tsconfig.json changes LGTM
# Conflicts: # x-pack/platform/test/tsconfig.json
joeypoon
approved these changes
Jan 20, 2026
dennis-tismenko
pushed a commit
to dennis-tismenko/kibana
that referenced
this pull request
Jan 22, 2026
…49338) ## Summary This PR introduces initial API integration test coverage for the Osquery plugin endpoints. **Important**: The goal here is not to provide exhaustive test coverage, but rather to establish a foundation. With these tests in place, future changes to the Osquery APIs will have a baseline to build upon and extend. The current tests focus on happy-path scenarios. ### Test suites added: - **packs.ts**: Fixed and unskipped (was skipped 3+ years); tests pack creation/update with multi-line query handling and Fleet integration - **saved_queries.ts**: CRUD lifecycle (create, read, update, find, delete) - **live_queries.ts**: Fetch action details and results via indexed action documents - **fleet_wrapper.ts**: Fleet wrapper endpoints (agents, policies, package policies) - **assets.ts**: Prebuilt pack assets status and update - **privileges_check.ts**: Privileges check endpoint - **status.ts**: Installation status endpoint with package info validation ### Run command: ```bash node scripts/functional_tests --config x-pack/platform/test/api_integration/apis/osquery/config.ts ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces initial API integration test coverage for the Osquery plugin endpoints.
Important: The goal here is not to provide exhaustive test coverage, but rather to establish a foundation. With these tests in place, future changes to the Osquery APIs will have a baseline to build upon and extend. The current tests focus on happy-path scenarios.
Test suites added:
Run command: