[ska] relocate fleet api integration tests#227769
Conversation
…ana into ska/fleet-api-integration
|
Pinging @elastic/fleet (Team:Fleet) |
| const DEFAULT_VERSION = '8.15.0-SNAPSHOT'; | ||
| const name = 'Artifact Manager - getLatestVersion'; | ||
|
|
||
| export async function getLatestVersion(): Promise<string> { | ||
| return retryForSuccess( | ||
| new ToolingLog({ level: 'debug', writeTo: process.stdout }, { context: name }), | ||
| { | ||
| timeout: 60_000, | ||
| methodName: name, | ||
| retryCount: 20, | ||
| block: () => axios('https://artifacts-api.elastic.co/v1/versions'), | ||
| } | ||
| ) | ||
| .then( | ||
| (response) => | ||
| last((response.data.versions as string[]).filter((v) => v.includes('-SNAPSHOT'))) || | ||
| DEFAULT_VERSION | ||
| ) | ||
| .catch(() => DEFAULT_VERSION); | ||
| } |
There was a problem hiding this comment.
moved here to avoid import from x-pack/test as it will bring circular dependency b/w test-helper packages
…ana into ska/fleet-api-integration
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16317695596 |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16317695515 |
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up (cherry picked from commit 84f5a7d)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up (cherry picked from commit 84f5a7d)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16350392159 |
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up (cherry picked from commit 84f5a7d)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.1`: - [[ska] relocate fleet api integration tests (#227769)](#227769) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2025-07-15T06:50:37Z","message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","Team:Fleet","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ska] relocate fleet api integration tests","number":227769,"url":"https://github.com/elastic/kibana/pull/227769","mergeCommit":{"message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227769","number":227769,"mergeCommit":{"message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695"}}]}] BACKPORT--> --------- Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8941[✅] x-pack/platform/test/fleet_api_integration/config.agent.ts: 25/25 tests passed. |
## Summary Part of elastic/kibana-team#1503 This PR is mostly about moving platform fleet api tests from x-pack/test ``` x-pack/test/ | - fleet_api_integration ``` After: ``` x-pack/platform/test/ | - fleet_api_integration ``` The tests that use imports from `security-solution` plugin are left in `x-pack/test` and will be relocated to solution directory in the follow-up (cherry picked from commit 84f5a7d) # Conflicts: # .buildkite/ftr_platform_stateful_configs.yml # x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts # x-pack/platform/test/fleet_api_integration/apis/agent_policy/agent_policy_outputs.ts # x-pack/platform/test/fleet_api_integration/apis/agents/helpers/mock_agentless_api.ts # x-pack/platform/test/fleet_api_integration/apis/agents/migrate.ts # x-pack/platform/test/fleet_api_integration/apis/epm/bulk_install_upgrade.ts # x-pack/platform/test/fleet_api_integration/apis/epm/bulk_uninstall.ts # x-pack/platform/test/fleet_api_integration/apis/epm/custom_integrations.ts # x-pack/platform/test/fleet_api_integration/apis/event_ingested/index.js # x-pack/platform/test/fleet_api_integration/apis/event_ingested/use_event_ingested.ts # x-pack/platform/test/fleet_api_integration/apis/settings/update.ts # x-pack/platform/test/fleet_api_integration/apis/space_awareness/outputs.ts # x-pack/platform/test/fleet_api_integration/apis/space_awareness/telemetry.ts # x-pack/platform/test/fleet_api_integration/config.event_ingested.ts # x-pack/test/fleet_api_integration/apis/agents/index.js # x-pack/test/fleet_api_integration/apis/epm/get.ts # x-pack/test/fleet_api_integration/apis/epm/index.js
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.19`: - [[ska] relocate fleet api integration tests (#227769)](#227769) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2025-07-15T06:50:37Z","message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ska] relocate fleet api integration tests","number":227769,"url":"https://github.com/elastic/kibana/pull/227769","mergeCommit":{"message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/228489","number":228489,"state":"MERGED","mergeCommit":{"sha":"45fe9e6f63c78abeb56f03a35a9fed102649ea38","message":"[9.1] [ska] relocate fleet api integration tests (#227769) (#228489)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[ska] relocate fleet api integration tests\n(#227769)](https://github.com/elastic/kibana/pull/227769)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227769","number":227769,"mergeCommit":{"message":"[ska] relocate fleet api integration tests (#227769)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis PR is mostly about moving platform fleet api tests from x-pack/test\n\n```\nx-pack/test/\n | - fleet_api_integration\n```\n\nAfter: \n```\nx-pack/platform/test/\n | - fleet_api_integration\n```\n\nThe tests that use imports from `security-solution` plugin are left in\n`x-pack/test` and will be relocated to solution directory in the\nfollow-up","sha":"84f5a7dc26243430a888e91cde2b40350ebcd695"}}]}] BACKPORT-->
Summary
Part of https://github.com/elastic/kibana-team/issues/1503
This PR is mostly about moving platform fleet api tests from x-pack/test
After:
The tests that use imports from
security-solutionplugin are left inx-pack/testand will be relocated to solution directory in the follow-up