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

Test export commands in all Beats #20016

Merged
merged 5 commits into from
Jul 20, 2020
Merged

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Jul 17, 2020

What does this PR do?

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

Why is it important?

In the past we've been hit by some of the export commands failing and there was no test to check that. There's generic tests in libbeat using mockbeat, but in the case of fields definitions, the export command might fail due to problems with the fields built into a particular Beat.

For example, if a Filebeat module defines a field that duplicates a field defined in another place, this was silently accepted but it would cause filebeat export index-pattern to fail with:

Error generating Index Pattern: field <log.file.path> is duplicated, remove it or set 'overwrite: true', {Name:log.file.path Type:keyword Description:The file from which the line was read. This field contains the absolute path to the file. For example: /var/log/system.log.
Format: Fields:[] MultiFields:[] Enabled: Analyzer: SearchAnalyzer: Norms:false Dynamic:{Value:} Index: DocValues: CopyTo: IgnoreAbove:0 AliasPath: MigrationAlias:false Dimension: ObjectType: ObjectTypeMappingType: ScalingFactor:0 ObjectTypeParams:[] Analyzed: Count:0 Searchable: Aggregatable: Script: Pattern: InputFormat: OutputFormat: OutputPrecision: LabelTemplate: UrlTemplate:[] OpenLinkInCurrentTab: Overwrite:false DefaultField: Path:log.file.path}, {"aggregatable":true,"analyzed":false,"count":0,"doc_values":true,"indexed":true,"name":"log.file.path","scripted":false,"searchable":true,"type":"string"}.

These new tests will validate that the export commands work for each individual Beat. Actual validation is limited to checking that the command succeeds and that it returns a valid JSON (ilm-policy, template, index-pattern) or YAML (config).

Ideally we would like to catch these kind of errors (esp. fields-definitions related errors) at an earlier stage, but it's worth having this last line of validation.

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.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 17, 2020
@adriansr adriansr added in progress Pull request is currently in progress. Team:SIEM labels Jul 17, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 17, 2020
@adriansr adriansr marked this pull request as ready for review July 19, 2020 12:29
@adriansr adriansr requested a review from a team as a code owner July 19, 2020 12:29
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@adriansr adriansr added review and removed in progress Pull request is currently in progress. labels Jul 19, 2020
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by user Adrian Serrano, Replayed #5]

  • Start Time: 2020-07-19T12:30:00.553+0000

  • Duration: 91 min 53 sec

Test stats 🧪

Test Results
Failed 2
Passed 15615
Skipped 1834
Total 17451

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestReplaceClientWorker – pipeline

    • Age: 1
    • Duration: 21.09
    • Error Details: Failed
  • Name: Build and Test / Libbeat / Libbeat oss / TestReplaceClientWorker/network_client – pipeline

    • Age: 1
    • Duration: 20.38
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-19T12:56:54.428+0000

    • log

  • Name: Mage build test

    • Description: mage build test

    • Duration: 3 min 16 sec

    • Start Time: 2020-07-19T12:57:00.817+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-19T12:57:56.857+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-07-19T13:31:09.545+0000

    • log

  • Name: Make test

    • Description: make -C generator/_templates/beat test

    • Duration: 7 min 11 sec

    • Start Time: 2020-07-19T13:51:51.740+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 2

    • Duration: 1 min 3 sec

    • Start Time: 2020-07-19T13:59:20.288+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-19T13:59:20.102Z]  Orchestrator: swarm
[2020-07-19T13:59:20.102Z] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2020-07-19T13:59:20.102Z] It requires Docker daemon to be installed and running
[2020-07-19T14:00:23.478Z] Failed in branch Generators
[2020-07-19T14:00:23.618Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats
[2020-07-19T14:00:23.932Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-19T14:00:23.946Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Lint
[2020-07-19T14:00:24.029Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-19T14:00:24.118Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-19T14:00:24.198Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-19T14:00:24.276Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-19T14:00:24.358Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-19T14:00:24.442Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-19T14:00:24.522Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-19T14:00:24.602Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-19T14:00:24.684Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-19T14:00:24.766Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Libbeat-oss
[2020-07-19T14:00:24.847Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-19T14:00:24.932Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-19T14:00:25.010Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Packetbeat-Linux
[2020-07-19T14:00:25.089Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-19T14:00:25.167Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-19T14:00:25.242Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-19T14:00:25.318Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-19T14:00:25.396Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-19T14:00:25.473Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-19T14:00:25.553Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-19T14:00:25.629Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-19T14:00:25.706Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-19T14:00:25.782Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-19T14:00:25.858Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-19T14:00:25.935Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-07-19T14:00:26.011Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-19T14:00:26.088Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-19T14:00:26.165Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-19T14:00:26.241Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-19T14:00:26.317Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-19T14:00:26.399Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-19T14:00:26.477Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-19T14:00:26.553Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-19T14:00:26.629Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-19T14:00:26.705Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-19T14:00:26.782Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-19T14:00:26.856Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-19T14:00:26.932Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Packetbeat-Windows
[2020-07-19T14:00:27.007Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-19T14:00:27.081Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Filebeat-oss
[2020-07-19T14:00:27.159Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-07-19T14:00:27.235Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-07-19T14:00:27.313Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-19T14:00:27.389Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-19T14:00:27.466Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-07-19T14:00:27.874Z] + cat
[2020-07-19T14:00:27.875Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-19T14:00:27.875Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-19T14:00:36.063Z] runbld>>> runbld started
[2020-07-19T14:00:36.063Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-19T14:00:37.006Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20016' in order of occurrence in the config (last value wins).
[2020-07-19T14:00:38.393Z] runbld>>> Debug logging enabled.
[2020-07-19T14:00:38.393Z] runbld>>> Storing result
[2020-07-19T14:00:38.393Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-19T14:00:38.393Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200719140038-F1B638B5
[2020-07-19T14:00:38.393Z] runbld>>> Adding system facts.
[2020-07-19T14:00:39.341Z] runbld>>> Adding vcs info for the latest commit:  d35702cbd43a7c9480310f072bf6a6762fee931b
[2020-07-19T14:00:39.341Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-19T14:00:39.341Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-19T14:00:39.603Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-19T14:00:39.603Z] Processing JUnit reports with runbld...
[2020-07-19T14:00:39.865Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-19T14:00:39.865Z] runbld>>> DURATION: 31ms
[2020-07-19T14:00:39.865Z] runbld>>> STDOUT: 40 bytes
[2020-07-19T14:00:39.865Z] runbld>>> STDERR: 49 bytes
[2020-07-19T14:00:39.865Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-19T14:00:39.865Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats
[2020-07-19T14:00:41.253Z] runbld>>> Storing build metadata: 
[2020-07-19T14:00:41.253Z] runbld>>> Adding test report.
[2020-07-19T14:00:41.253Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats
[2020-07-19T14:00:41.826Z] runbld>>> Found 133 test output files
[2020-07-19T14:00:43.745Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-19T14:00:43.745Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-19T14:00:43.745Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-19T14:00:43.746Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-19T14:00:43.746Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-19T14:00:43.746Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-19T14:00:43.746Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20016/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-19T14:00:45.138Z] runbld>>> Test output logs contained: Errors: 0 Failures: 2 Tests: 17301 Skipped: 1573
[2020-07-19T14:00:45.138Z] runbld>>> Storing result
[2020-07-19T14:00:45.138Z] runbld>>> FAILURES: 2
[2020-07-19T14:00:45.710Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-19T14:00:45.710Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200719140038-F1B638B5
[2020-07-19T14:00:45.710Z] runbld>>> Email notification disabled by environment variable.
[2020-07-19T14:00:45.710Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-19T14:00:51.838Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20016
[2020-07-19T14:00:52.066Z] [INFO] getVaultSecret: Getting secrets
[2020-07-19T14:00:52.147Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-19T14:00:53.362Z] + chmod 755 generate-build-data.sh
[2020-07-19T14:00:53.362Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20016/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20016/runs/6 FAILURE 5452542
[2020-07-19T14:00:53.362Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20016/runs/6/steps/?limit=10000 -o steps-info.json
[2020-07-19T14:00:55.845Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20016/runs/6/tests/?status=FAILED -o tests-errors.json
[2020-07-19T14:00:56.396Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20016/runs/6/log/ -o pipeline-log.txt

@adriansr adriansr added the Team:Integrations Label for the Integrations team label Jul 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@adriansr adriansr merged commit 813763f into elastic:master Jul 20, 2020
@adriansr
Copy link
Contributor Author

Merged with unrelated CI errors

v1v added a commit to v1v/beats that referenced this pull request Jul 20, 2020
…ngs-archive

* upstream/master: (274 commits)
  Test export commands in all Beats (elastic#20016)
  [Ingest Manager] Allow using drop path for agent build (elastic#20019)
  [DOCS] Remove include for deleted file in monitoring docs (elastic#20038)
  Removing xpack.monitoring.* settings (elastic#18608)
  [Heartbeat] Add service_name option for APM integration (elastic#19932)
  [Elastic Agent] Fix merging of fleet.yml. Add --staging to enroll cmd. (elastic#20026)
  Stricter stalebot configuration for PRs (elastic#20004)
  [ci] Favor direct mage invocation on CI (elastic#19960)
  Add cloudwatch input into Filebeat configure inputs documentation (elastic#19973)
  [Filebeat] remove delimiter \n from log line in s3 input (elastic#19972)
  [Metricbeat] Update MySQL dashboard (elastic#19913)
  Packetbeat process monitor: Ignore missing /proc/net/tcp6 (elastic#19945)
  [CI] fix MODULE variable cornercases (elastic#19985)
  Ignore timestamp in fortinet/clientendpoint and netscout/sightline (elastic#19998)
  add 7.9 to .backportrc.json (elastic#19952)
  Update internal links to external (elastic#19947)
  Remove Dynamic Script Compilations warning in Cisco module (elastic#19840)
  [Elastic Agent] Fix RPM and DEB packaging for Elastic Agent (elastic#19959)
  [Ingest Manager] Do not compare err with custom type (elastic#19980)
  Fix nanocore sum for non default intervals on Kubernetes Overview Dashboard (elastic#19675)
  ...
v1v added a commit to v1v/beats that referenced this pull request Jul 20, 2020
…nly-mod

* upstream/master: (75 commits)
  Test export commands in all Beats (elastic#20016)
  [Ingest Manager] Allow using drop path for agent build (elastic#20019)
  [DOCS] Remove include for deleted file in monitoring docs (elastic#20038)
  Removing xpack.monitoring.* settings (elastic#18608)
  [Heartbeat] Add service_name option for APM integration (elastic#19932)
  [Elastic Agent] Fix merging of fleet.yml. Add --staging to enroll cmd. (elastic#20026)
  Stricter stalebot configuration for PRs (elastic#20004)
  [ci] Favor direct mage invocation on CI (elastic#19960)
  Add cloudwatch input into Filebeat configure inputs documentation (elastic#19973)
  [Filebeat] remove delimiter \n from log line in s3 input (elastic#19972)
  [Metricbeat] Update MySQL dashboard (elastic#19913)
  Packetbeat process monitor: Ignore missing /proc/net/tcp6 (elastic#19945)
  [CI] fix MODULE variable cornercases (elastic#19985)
  Ignore timestamp in fortinet/clientendpoint and netscout/sightline (elastic#19998)
  add 7.9 to .backportrc.json (elastic#19952)
  Update internal links to external (elastic#19947)
  Remove Dynamic Script Compilations warning in Cisco module (elastic#19840)
  [Elastic Agent] Fix RPM and DEB packaging for Elastic Agent (elastic#19959)
  [Ingest Manager] Do not compare err with custom type (elastic#19980)
  Fix nanocore sum for non default intervals on Kubernetes Overview Dashboard (elastic#19675)
  ...
adriansr added a commit to adriansr/beats that referenced this pull request Aug 14, 2020
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
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
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
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
review Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants