豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

migrate export migration tests from python to go#50174

Draft
leehinman wants to merge 1 commit intoelastic:mainfrom
leehinman:48850_migrate_python_export_migration_tests_to_go
Draft

migrate export migration tests from python to go#50174
leehinman wants to merge 1 commit intoelastic:mainfrom
leehinman:48850_migrate_python_export_migration_tests_to_go

Conversation

@leehinman
Copy link
Copy Markdown
Contributor

Proposed commit message

Converts test_migration.py system tests to Go integration tests using the existing libbeat/tests/integration framework, continuing the effort to replace Python-based system tests with Go integration tests.

  • Adds TestMigrationDefault, TestMigrationFalse, and TestMigrationTrue in libbeat/tests/integration/cmd_export_migration_test.go
  • Removes libbeat/tests/system/test_migration.py

The three tests cover the behaviour of the migration.6_to_7.enabled config flag when running export template:

Test migration.6_to_7.enabled migration_alias_false migration_alias_true
TestMigrationDefault unset (default: off) present absent
TestMigrationFalse false present absent
TestMigrationTrue true present present

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

None. Test Code

How to test this PR locally

cd libbeat && mage goIntegTest

Related issues

Use cases

Screenshots

Logs

@leehinman leehinman added backport-skip Skip notification from the automated backport with mergify Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team skip-changelog labels Apr 16, 2026
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Apr 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip Skip notification from the automated backport with mergify skip-changelog Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant