-
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
Update API performance tests #1881
Merged
Merged
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
yanazaeva
requested review from
davidjiglesias
and removed request for
AdriiiPRodri and
Selutario
September 13, 2021 12:07
Selutario
previously approved these changes
Sep 14, 2021
yanazaeva
force-pushed
the
9920-api-performance-test-update
branch
from
September 14, 2021 14:57
b37d1e0
to
9ecce46
Compare
Selutario
previously approved these changes
Sep 15, 2021
juliamagan
reviewed
Sep 15, 2021
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.
When launching the test 1 of the 4 cases has failed in all three rounds:
Local | |
---|---|
R1 | 🔴 |
R2 | 🔴 |
R3 | 🔴 |
This is part of the output obtained:
DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpbr92mzbl -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args \'stat -c "%a" /var/ossec/etc/shared/test_group/test_file\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\n660\n', stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'stat -c "%a" /var/ossec/etc/shared/test_group/test_file', {'check': False, 'become': False}): {'changed': True,
'cmd': ['stat', '-c', '%a', '/var/ossec/etc/shared/test_group/test_file'],
'delta': '0:00:00.145148',
'end': '2021-09-15 13:19:07.142385',
'rc': 0,
'start': '2021-09-15 13:19:06.997237',
'stderr': '',
'stderr_lines': [],
'stdout': '660',
'stdout_lines': ['660']}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpu9kocaz_ -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/test_file' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/test_file': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/test_file', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/test_file'],
'delta': '0:00:00.149665',
'end': '2021-09-15 13:19:09.009865',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:08.860200',
'stderr': "ls: cannot access '/var/ossec/etc/test_file': No such file or "
'directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/test_file': No such file "
'or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpi1ddw6dl -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/lists/ar.conf' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/lists/ar.conf': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/lists/ar.conf', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/lists/ar.conf'],
'delta': '0:00:00.142498',
'end': '2021-09-15 13:19:10.851457',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:10.708959',
'stderr': "ls: cannot access '/var/ossec/etc/lists/ar.conf': No such file or "
'directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/lists/ar.conf': No such "
'file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpihtw8yrd -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/lists/ossec.conf' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/lists/ossec.conf': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/lists/ossec.conf', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/lists/ossec.conf'],
'delta': '0:00:00.138224',
'end': '2021-09-15 13:19:12.700646',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:12.562422',
'stderr': "ls: cannot access '/var/ossec/etc/lists/ossec.conf': No such file "
'or directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/lists/ossec.conf': No "
'such file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsymi1tpl -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/lists/test.tmp' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/lists/test.tmp': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/lists/test.tmp', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/lists/test.tmp'],
'delta': '0:00:00.136152',
'end': '2021-09-15 13:19:14.709767',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:14.573615',
'stderr': "ls: cannot access '/var/ossec/etc/lists/test.tmp': No such file or "
'directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/lists/test.tmp': No such "
'file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpmh_3qwe5 -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/lists/test.lock' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/lists/test.lock': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/lists/test.lock', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/lists/test.lock'],
'delta': '0:00:00.145096',
'end': '2021-09-15 13:19:16.720374',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:16.575278',
'stderr': "ls: cannot access '/var/ossec/etc/lists/test.lock': No such file "
'or directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/lists/test.lock': No such "
'file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpj_g3ftb7 -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/lists/test.swp' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/etc/lists/test.swp': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/lists/test.swp', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/lists/test.swp'],
'delta': '0:00:00.147286',
'end': '2021-09-15 13:19:18.711873',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:18.564587',
'stderr': "ls: cannot access '/var/ossec/etc/lists/test.swp': No such file or "
'directory',
'stderr_lines': ["ls: cannot access '/var/ossec/etc/lists/test.swp': No such "
'file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpv46m7g5o -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/var/multigroups/test_dir/test_file' wazuh-worker1", exit_status=2, stdout=b"wazuh-worker1 | FAILED | rc=2 >>\nls: cannot access '/var/ossec/var/multigroups/test_dir/test_file': No such file or directorynon-zero return code\n", stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/var/multigroups/test_dir/test_file', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/var/multigroups/test_dir/test_file'],
'delta': '0:00:00.143837',
'end': '2021-09-15 13:19:20.636571',
'msg': 'non-zero return code',
'rc': 2,
'start': '2021-09-15 13:19:20.492734',
'stderr': "ls: cannot access '/var/ossec/var/multigroups/test_dir/test_file': "
'No such file or directory',
'stderr_lines': ['ls: cannot access '
"'/var/ossec/var/multigroups/test_dir/test_file': No such "
'file or directory'],
'stdout': '',
'stdout_lines': []}
DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpm19yizpd -i /home/juliamagan/Escritorio/wazuh-qa/tests/system/provisioning/agentless_cluster/inventory.yml -m command --args 'ls /var/ossec/etc/shared/test_group/agent.conf' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\n/var/ossec/etc/shared/test_group/agent.conf\n', stderr=None)
INFO testinfra:ansible.py:58 RUN Ansible('command', 'ls /var/ossec/etc/shared/test_group/agent.conf', {'check': False, 'become': False}): {'changed': True,
'cmd': ['ls', '/var/ossec/etc/shared/test_group/agent.conf'],
'delta': '0:00:00.141136',
'end': '2021-09-15 13:19:22.594065',
'rc': 0,
'start': '2021-09-15 13:19:22.452929',
'stderr': '',
'stderr_lines': [],
'stdout': '/var/ossec/etc/shared/test_group/agent.conf',
'stdout_lines': ['/var/ossec/etc/shared/test_group/agent.conf']}
-------------------------------- generated html file: file:///home/juliamagan/Escritorio/wazuh-qa/tests/system/test_cluster/test_integrity_sync/system_test_integrity_sync_r3.html --------------------------------
============================================================================================= short test summary info =============================================================================================
FAILED test_integrity_sync.py::test_missing_file - AssertionError: File /var/ossec/etc/shared/test_group/agent.conf was expected not to be copied in wazuh-worker1, but it was.
PR update.Added changes according to the base change.
|
juliamagan
approved these changes
Sep 16, 2021
Selutario
approved these changes
Sep 16, 2021
davidjiglesias
approved these changes
Sep 27, 2021
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
Hi team,
In this PR we have updated the API performance tests based on the latest changes made in the main repo.
Test result.
Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.provision_documentation.sh
generate the docs without errors.