Skip to content

Comments

[ska] relocate fleet api integration tests#227769

Merged
dmlemeshko merged 19 commits intoelastic:mainfrom
dmlemeshko:ska/fleet-api-integration
Jul 15, 2025
Merged

[ska] relocate fleet api integration tests#227769
dmlemeshko merged 19 commits intoelastic:mainfrom
dmlemeshko:ska/fleet-api-integration

Conversation

@dmlemeshko
Copy link
Contributor

@dmlemeshko dmlemeshko commented Jul 14, 2025

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

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

@dmlemeshko dmlemeshko self-assigned this Jul 14, 2025
@dmlemeshko dmlemeshko added v8.19.0 v9.2.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Jul 14, 2025
@dmlemeshko dmlemeshko marked this pull request as ready for review July 14, 2025 12:56
@dmlemeshko dmlemeshko requested review from a team as code owners July 14, 2025 12:56
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 14, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Comment on lines +21 to +40
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);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved here to avoid import from x-pack/test as it will bring circular dependency b/w test-helper packages

@dmlemeshko dmlemeshko added backport:version Backport to applied version labels and removed backport:skip This PR does not require backporting labels Jul 16, 2025
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16317695596

@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16317695515

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 16, 2025
## 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)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 227769

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 16, 2025
## 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)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 227769

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 17, 2025
@kibanamachine
Copy link
Contributor

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.
cc: @dmlemeshko

@dmlemeshko dmlemeshko added backport:version Backport to applied version labels and removed backport:version Backport to applied version labels labels Jul 17, 2025
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16350392159

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 17, 2025
## 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)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 227769

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 18, 2025
# 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>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 18, 2025
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
## 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
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## 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
@kibanamachine
Copy link
Contributor

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.

see run history

dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Aug 4, 2025
## 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
@dmlemeshko
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dmlemeshko added a commit that referenced this pull request Aug 4, 2025
# 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-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.19.0 v8.19.1 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants