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

[7.17](backport #31588) python tests: compatibility and stability improvements #35844

Closed
wants to merge 3 commits into from

Commits on Jun 21, 2023

  1. python tests: compatibility and stability improvements (#31588)

    This commit improves the compatibility and stability of Python tests
    for Filebeat. It addresses two main probmes:
    1. Some deprecated TLS functions are now raising deprecation
    exceptions (since Python 3.10.0)
    2. Some tests, on failure, leave Filebeat running and bound to port
    8080, this creates a cascading failure of the subsequent tests that
    require the same port to be available.
    
    The main changes are:
     - Ensuring Filebeat process is always terminated, even if the test
     fails
     - Using the replacement methods/objects for the deprecated TLS
     functions.
    
    (cherry picked from commit 682045a)
    
    # Conflicts:
    #	libbeat/tests/system/beat/beat.py
    belimawr authored and mergify[bot] committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1c0a1a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b3678e View commit details
    Browse the repository at this point in the history
  3. Resolve conflicts in beat.py

    cmacknz authored Jun 21, 2023
    Configuration menu
    Copy the full SHA
    73f85c6 View commit details
    Browse the repository at this point in the history