Skip to content

Backport PR #17114 to 8.x: spec: improve ls2ls spec#17116

Merged
mashhurs merged 1 commit into8.xfrom
backport_17114_8.x
Feb 19, 2025
Merged

Backport PR #17114 to 8.x: spec: improve ls2ls spec#17116
mashhurs merged 1 commit into8.xfrom
backport_17114_8.x

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Backport PR #17114 to 8.x branch, original message:


Release notes

[rn:skip]

What does this PR do?

  • fixes upstream/downstream convention
    • upstream: the sending logstash (has an LS output)
    • downstream: the receiving logstash (has an LS input)
  • helper run_logstash_instance yields the LogstashService instance and handles the teardown (prevents teardown getting skipped when an exception occurs before it).
  • pass the pipeline id and node name to the LS instances via command line flags to make logging easier to differentiate
  • use the generator input's sequence id to ensure that the actual events generated are received by the downstream pipeline

Why is it important/What is the impact to the user?

No user impact; better tests same basic coverage.

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 (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

* spec: improve ls2ls spec

 - fixes upstream/downstream convention
   - upstream: the sending logstash (has an LS output)
   - downstream: the receiving logstash (has an LS input)
 - helper `run_logstash_instance` yields the `LogstashService` instance
   and handles the teardown.
 - pass the pipeline id and node name to the LS instances via command line
   flags to make logging easier to differentiate
 - use the generator input's sequence id to ensure that the _actual_ events
   generated are received by the downstream pipeline

* start with port-offset 100

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>

---------

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
(cherry picked from commit 9abad66)
Copy link
Copy Markdown
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

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

LGTM!

@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

@mashhurs mashhurs merged commit c003655 into 8.x Feb 19, 2025
@mashhurs mashhurs deleted the backport_17114_8.x branch February 19, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants