-
Notifications
You must be signed in to change notification settings - Fork 32
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
Adapt reliability test to run with python 3.7 #4478
Merged
davidjiglesias
merged 2 commits into
4.5.3
from
fix/4299-reliability-test-python3.7-4.5.3
Sep 12, 2023
Merged
Adapt reliability test to run with python 3.7 #4478
davidjiglesias
merged 2 commits into
4.5.3
from
fix/4299-reliability-test-python3.7-4.5.3
Sep 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Aug 29, 2023
Selutario
approved these changes
Aug 30, 2023
Selutario
suggested changes
Aug 30, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GGP1, I forgot to mention, please add the output of 3 executions (as in this example)
ExecutionsRun 1(venv3.7) gasti@pop-os:~/work/wazuh-qa$ date --utc; python3 -m pytest -vv --disable-warnings tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py --artifacts_path=artifacts --html=report.html --self-contained-html
Wed Aug 30 02:19:31 PM UTC 2023
======================================================== test session starts =========================================================
platform linux -- Python 3.7.17, pytest-7.1.2, pluggy-0.13.1 -- /home/gasti/work/wazuh-qa/venv3.7/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.7.17', 'Platform': 'Linux-6.2.0-76060200-generic-x86_64-with-Pop-22.04-jammy', 'Packages': {'pytest': '7.1.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '3.0.0'}}
rootdir: /home/gasti/work/wazuh-qa/tests, configfile: pytest.ini
plugins: html-3.1.1, testinfra-5.0.0, metadata-3.0.0
collected 1 item
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py::test_check_logs_order_master PASSED [100%]
--------------------------------- generated html file: file:///home/gasti/work/wazuh-qa/report.html ----------------------------------
========================================================= 1 passed in 0.01s ========================================================== Run 2(venv3.7) gasti@pop-os:~/work/wazuh-qa$ date --utc; python3 -m pytest -vv --disable-warnings tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py --artifacts_path=artifacts --html=report.html --self-contained-html
Wed Aug 30 02:19:42 PM UTC 2023
======================================================== test session starts =========================================================
platform linux -- Python 3.7.17, pytest-7.1.2, pluggy-0.13.1 -- /home/gasti/work/wazuh-qa/venv3.7/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.7.17', 'Platform': 'Linux-6.2.0-76060200-generic-x86_64-with-Pop-22.04-jammy', 'Packages': {'pytest': '7.1.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '3.0.0'}}
rootdir: /home/gasti/work/wazuh-qa/tests, configfile: pytest.ini
plugins: html-3.1.1, testinfra-5.0.0, metadata-3.0.0
collected 1 item
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py::test_check_logs_order_master PASSED [100%]
--------------------------------- generated html file: file:///home/gasti/work/wazuh-qa/report.html ----------------------------------
========================================================= 1 passed in 0.01s ========================================================== Run 3(venv3.7) gasti@pop-os:~/work/wazuh-qa$ date --utc; python3 -m pytest -vv --disable-warnings tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py --artifacts_path=artifacts --html=report.html --self-contained-html
Wed Aug 30 02:19:56 PM UTC 2023
======================================================== test session starts =========================================================
platform linux -- Python 3.7.17, pytest-7.1.2, pluggy-0.13.1 -- /home/gasti/work/wazuh-qa/venv3.7/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.7.17', 'Platform': 'Linux-6.2.0-76060200-generic-x86_64-with-Pop-22.04-jammy', 'Packages': {'pytest': '7.1.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '3.0.0'}}
rootdir: /home/gasti/work/wazuh-qa/tests, configfile: pytest.ini
plugins: html-3.1.1, testinfra-5.0.0, metadata-3.0.0
collected 1 item
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py::test_check_logs_order_master PASSED [100%]
--------------------------------- generated html file: file:///home/gasti/work/wazuh-qa/report.html ----------------------------------
========================================================= 1 passed in 0.01s ========================================================== |
Selutario
reviewed
Aug 31, 2023
Selutario
previously approved these changes
Aug 31, 2023
damarisg
previously approved these changes
Aug 31, 2023
GGP1
force-pushed
the
fix/4299-reliability-test-python3.7-4.5.3
branch
from
September 8, 2023 12:14
bd6d130
to
1002022
Compare
3 tasks
davidjiglesias
deleted the
fix/4299-reliability-test-python3.7-4.5.3
branch
September 12, 2023 10:18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removed the walrus operator from the
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py
test to support running it in Python 3.7.Logs
Report