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

[Filebeat] Add export tests to x-pack/filebeat #20156

Merged

Conversation

andrewkroh
Copy link
Member

What does this PR do?

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

Why is it important?

Kibana as a maximum request payload size. If our index pattern document goes above this limit then we cannot setup dashboards.

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
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 22, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 22, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [andrewkroh commented: run tests]

  • Start Time: 2020-07-28T20:55:34.088+0000

  • Duration: 79 min 3 sec

Test stats 🧪

Test Results
Failed 2
Passed 14133
Skipped 1362
Total 15497

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestDockerStart – docker

    • Age: 1
    • Duration: 12.36
    • Error Details: Failed
  • Name: Build and Test / Metricbeat OSS Unit tests / test_process – test_system.Test

    • Age: 1
    • Duration: 0.801
    • Error Details: False is not true : fd not found in any process events

Steps errors

Expand to view the steps failures

  • Name: Mage build test

    • Description: mage build test

    • Duration: 19 min 27 sec

    • Start Time: 2020-07-28T21:19:28.453+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 6 min 6 sec

    • Start Time: 2020-07-28T21:19:29.985+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 3 min 16 sec

    • Start Time: 2020-07-28T22:03:31.222+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-28T22:14:06.480Z]   inflating: /var/lib/jenkins/workspace/Beats_beats_PR-20156/bin/terraform  
[2020-07-28T22:14:06.480Z] + rm /var/lib/jenkins/workspace/Beats_beats_PR-20156/bin/terraform.zip
[2020-07-28T22:14:06.480Z] + chmod +x /var/lib/jenkins/workspace/Beats_beats_PR-20156/bin/terraform
[2020-07-28T22:14:06.858Z] + make mage
[2020-07-28T22:14:06.858Z] Installing mage v1.10.0.
[2020-07-28T22:14:07.805Z] go: downloading github.com/magefile/mage v1.10.0
[2020-07-28T22:14:09.720Z] /var/lib/jenkins/workspace/Beats_beats_PR-20156/.magefile cleaned
[2020-07-28T22:14:10.060Z] + git config --get user.email
[2020-07-28T22:14:10.060Z] + [ -z  ]
[2020-07-28T22:14:10.060Z] + git config user.email [email protected]
[2020-07-28T22:14:10.060Z] + git config user.name beatsmachine
[2020-07-28T22:14:10.464Z] + .ci/scripts/terraform-cleanup.sh x-pack/metricbeat
[2020-07-28T22:14:10.464Z] + DIRECTORY=x-pack/metricbeat
[2020-07-28T22:14:10.464Z] + FAILED=0
[2020-07-28T22:14:10.464Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-07-28T22:14:10.464Z] + exit 0
[2020-07-28T22:14:10.995Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats
[2020-07-28T22:14:11.307Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-28T22:14:11.320Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Lint
[2020-07-28T22:14:11.410Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-28T22:14:11.494Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-28T22:14:11.577Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-28T22:14:11.660Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-28T22:14:11.745Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-28T22:14:11.840Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-28T22:14:11.924Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Packetbeat-Linux
[2020-07-28T22:14:12.008Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-28T22:14:12.090Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-28T22:14:12.180Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-28T22:14:12.266Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-28T22:14:12.357Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-28T22:14:12.436Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-28T22:14:12.515Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-28T22:14:12.593Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-28T22:14:12.675Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-28T22:14:12.753Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-28T22:14:12.832Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-28T22:14:12.910Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-28T22:14:12.994Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-28T22:14:13.093Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-28T22:14:13.171Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-28T22:14:13.249Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-28T22:14:13.331Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-28T22:14:13.413Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Libbeat-oss
[2020-07-28T22:14:13.496Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-28T22:14:13.578Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-28T22:14:13.660Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Filebeat-oss
[2020-07-28T22:14:13.742Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-28T22:14:13.823Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-07-28T22:14:13.909Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-07-28T22:14:13.993Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Packetbeat-Windows
[2020-07-28T22:14:14.084Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-28T22:14:14.452Z] + cat
[2020-07-28T22:14:14.452Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-28T22:14:14.452Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-28T22:14:21.061Z] runbld>>> runbld started
[2020-07-28T22:14:21.061Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-28T22:14:22.009Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20156' in order of occurrence in the config (last value wins).
[2020-07-28T22:14:23.401Z] runbld>>> Debug logging enabled.
[2020-07-28T22:14:23.401Z] runbld>>> Storing result
[2020-07-28T22:14:23.664Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-28T22:14:23.664Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728221423-D7942EA4
[2020-07-28T22:14:23.664Z] runbld>>> Adding system facts.
[2020-07-28T22:14:24.610Z] runbld>>> Adding vcs info for the latest commit:  36a485719916ced6b78afae541eedc6357ffde14
[2020-07-28T22:14:24.610Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-28T22:14:24.610Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-28T22:14:24.870Z] Processing JUnit reports with runbld...
[2020-07-28T22:14:24.870Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-28T22:14:25.132Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-28T22:14:25.132Z] runbld>>> DURATION: 21ms
[2020-07-28T22:14:25.132Z] runbld>>> STDOUT: 40 bytes
[2020-07-28T22:14:25.132Z] runbld>>> STDERR: 49 bytes
[2020-07-28T22:14:25.132Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-28T22:14:25.132Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats
[2020-07-28T22:14:26.528Z] runbld>>> Storing build metadata: 
[2020-07-28T22:14:26.528Z] runbld>>> Adding test report.
[2020-07-28T22:14:26.528Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats
[2020-07-28T22:14:27.102Z] runbld>>> Found 117 test output files
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-28T22:14:28.052Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-28T22:14:28.313Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20156/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-28T22:14:29.713Z] runbld>>> Test output logs contained: Errors: 0 Failures: 2 Tests: 15347 Skipped: 1126
[2020-07-28T22:14:29.973Z] runbld>>> Storing result
[2020-07-28T22:14:29.973Z] runbld>>> FAILURES: 2
[2020-07-28T22:14:30.546Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-28T22:14:30.546Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728221423-D7942EA4
[2020-07-28T22:14:30.546Z] runbld>>> Email notification disabled by environment variable.
[2020-07-28T22:14:30.546Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-28T22:14:36.297Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20156
[2020-07-28T22:14:36.520Z] [INFO] getVaultSecret: Getting secrets
[2020-07-28T22:14:36.597Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-28T22:14:37.352Z] + chmod 755 generate-build-data.sh
[2020-07-28T22:14:37.352Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20156/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20156/runs/9 FAILURE 4743001
[2020-07-28T22:14:37.352Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20156/runs/9/steps/?limit=10000 -o steps-info.json
[2020-07-28T22:14:39.214Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20156/runs/9/tests/?status=FAILED -o tests-errors.json
[2020-07-28T22:14:39.214Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20156/runs/9/log/ -o pipeline-log.txt

@andrewkroh andrewkroh force-pushed the feature/fb/index-pattern-export-test branch from faac781 to b097b13 Compare July 22, 2020 16:59
@andrewkroh
Copy link
Member Author

run tests

@kaiyan-sheng
Copy link
Contributor

Maybe we need the same test for metricbeat as well?

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.
@andrewkroh andrewkroh force-pushed the feature/fb/index-pattern-export-test branch from b097b13 to 725c12c Compare July 22, 2020 22:43
@andrewkroh
Copy link
Member Author

I think x-pack/metricbeat already has these export tests enabled because it inherits from the OSS test_base which has them.

class Test(xpack_metricbeat.XPackTest, test_base.Test):

class Test(BaseTest, common_tests.TestExportsMixin):

@andrewkroh andrewkroh marked this pull request as ready for review July 22, 2020 22:48
@andrewkroh andrewkroh requested a review from adriansr July 22, 2020 22:48
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 23, 2020
@andresrc andresrc added needs_team Indicates that the issue/PR needs a Team:* label Team:Integrations Label for the Integrations team labels Jul 23, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 23, 2020
@botelastic
Copy link

botelastic bot commented Jul 23, 2020

This pull request doesn't have a Team:<team> label.

@andrewkroh
Copy link
Member Author

run tests

@andrewkroh
Copy link
Member Author

run tests

@andrewkroh
Copy link
Member Author

run tests

@andrewkroh andrewkroh added the needs_backport PR is waiting to be backported to other branches. label Jul 28, 2020
@andrewkroh andrewkroh merged commit 36c8468 into elastic:master Jul 29, 2020
@andrewkroh andrewkroh removed the needs_backport PR is waiting to be backported to other branches. label Jul 29, 2020
v1v added a commit to v1v/beats that referenced this pull request Jul 30, 2020
…ne-2.0

* upstream/master: (29 commits)
  Add an explicit system test for processes on unix systems (elastic#20320)
  [Autodiscovery] Ignore ErrInputNotFinished errors in autodiscover config checks (elastic#20305)
  [CI] Update README.md with CI references (elastic#20316)
  Add ECK doc links to Heartbeat docs (elastic#20284)
  [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)
  feat(ci): support building docker images for PRs (elastic#20323)
  Update system tests dependency (elastic#20287)
  [Libbeat] Log debug message if the Kibana dashboard can not be imported from the archive (elastic#12211) (elastic#20150)
  [Filebeat][Gsuite] Transform all dates to timestamp with processor (elastic#20308)
  Infer types in Prometheus remote_write (elastic#19944)
  Remove unnecessary restarts of metricsets while using Node autodiscover (elastic#19974)
  docs: update changelog on master branch (elastic#20259)
  feat(ci): support storing artifacts for PRs in separate dirs (elastic#20282)
  [CI] Change upstream reference (elastic#20296)
  [Filebeat] Updates to Suricata module (elastic#20220)
  [docs] Fix Windows download link for agent (elastic#20258)
  [docs] Rename release highlights to what's new (elastic#20255)
  fix: update the display name of the multibranch job (elastic#20265)
  [Elastic Agent] Add basic protocol to control Elastic Agent. (elastic#20146)
  Cisco ASA: Fix message 106100 (elastic#20245)
  ...
adriansr pushed a commit to adriansr/beats that referenced this pull request Aug 14, 2020
* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB
adriansr added a commit that referenced this pull request Aug 17, 2020
…igration.6_to_7.enabled (#20574)

* Test export commands in all Beats (#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

* Changelog entry

Co-authored-by: Andrew Kroh <[email protected]>
adriansr added a commit to adriansr/beats that referenced this pull request Aug 17, 2020
… with migration.6_to_7.enabled (elastic#20574)

* Test export commands in all Beats (elastic#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

* Changelog entry

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 9ec7549)
adriansr added a commit that referenced this pull request Aug 17, 2020
…igration.6_to_7.enabled (#20628)

* Cherry-pick #20540 to 7.x: Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20574)

* Test export commands in all Beats (#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 9ec7549)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
… with migration.6_to_7.enabled (elastic#20628)

* Cherry-pick elastic#20540 to 7.x: Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20574)

* Test export commands in all Beats (elastic#20016)

This adds 4 new integration tests to all Beats that test export commands:

> beatname export ilm-policy
> beatname export template
> beatname export index-pattern
> beatname export config

* [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)

* Add export tests to x-pack/filebeat

Add export sub-command tests to x-pack/filebeat and add an assertion for the
size the Kibana index-pattern due to the Kibana API limiting payloads to 1 MiB.

* Assert size of index pattern document is less than 1 MiB

* Fix Winlogbeat export index-pattern with migration.6_to_7.enabled (elastic#20540)

- Test export index-pattern with migration.6_to_7.enabled=true
- Always run these tests, not only when integration testing
- Remove conflicting Winlogbeat alias

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 66cfa25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants