r3_agent_info_sync.html

Report generated on 30-Aug-2021 at 12:55:24 by pytest-html v3.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.3"}
Platform Linux-5.11.0-7620-generic-x86_64-with-glibc2.33
Plugins {"html": "3.1.1", "metadata": "1.11.0", "testinfra": "6.0.0"}
Python 3.9.5

Summary

2 tests ran in 228.15 seconds.

2 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Passed test_agent_info_sync.py::test_agent_info_sync 139.16
------------------------------Captured stderr call------------------------------
2021-08-30 12:52:53,456 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-08-30 12:52:53,458 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/cluster.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_info_sync/tmp/wazuh-master_cluster.log.tmp 2021-08-30 12:52:53,459 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-08-30 12:52:53,462 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*test_label.* 2021-08-30 12:52:55,479 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*test_label.* 2021-08-30 12:52:56,465 - wazuh_testing - DEBUG - Cleaning temporal files... 2021-08-30 12:52:56,465 - wazuh_testing - DEBUG - Checking results... 2021-08-30 12:52:56,466 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/08/30 12:52:54 DEBUG2: [Worker wazuh-worker1] [Agent-info sync] Sending chunk 1/1 to wazuh-db: [{"id":2,"name":"wazuh-agent2","ip":"172.17.0.6","os_name":"Debian GNU/Linux","os_version":"10","os_major":"10","os_codename":"buster","os_platform":"debian","os_uname":"Linux |wazuh-agent2 |5.11.0-7620-generic |#21~1626191760~21.04~55de9c3-Ubuntu SMP Tue Jul 20 22:18:55 UTC |x86_64","os_arch":"x86_64","version":"Wazuh v4.3.0","config_sum":"ab73af41699f13fdd81903b5f23d8d00","merged_sum":"9a016508cea1e997ab8569f5cfab30f5","manager_host":"wazuh-worker1","node_name":"wazuh-worker1","last_keepalive":1630320771,"connection_status":"active","labels":[{"id":2,"key":"\"test_label\"","value":"value"},{"id":2,"key":"#\"_agent_ip\"","value":"172.17.0.6"},{"id":2,"key":"#\"_manager_hostname\"","value":"wazuh-worker1"},{"id":2,"key":"#\"_node_name\"","value":"wazuh-worker1"},{"id":2,"key":"#\"_wazuh_version\"","value":"Wazuh v4.3.0"}]}]
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-master and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-master and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:988 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:977 Checking results... DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-master the expected message: 2021/08/30 12:52:54 DEBUG2: [Worker wazuh-worker1] [Agent-info sync] Sending chunk 1/1 to wazuh-db: [{"id":2,"name":"wazuh-agent2","ip":"172.17.0.6","os_name":"Debian GNU/Linux","os_version":"10","os_major":"10","os_codename":"buster","os_platform":"debian","os_uname":"Linux |wazuh-agent2 |5.11.0-7620-generic |#21~1626191760~21.04~55de9c3-Ubuntu SMP Tue Jul 20 22:18:55 UTC |x86_64","os_arch":"x86_64","version":"Wazuh v4.3.0","config_sum":"ab73af41699f13fdd81903b5f23d8d00","merged_sum":"9a016508cea1e997ab8569f5cfab30f5","manager_host":"wazuh-worker1","node_name":"wazuh-worker1","last_keepalive":1630320771,"connection_status":"active","labels":[{"id":2,"key":"\"test_label\"","value":"value"},{"id":2,"key":"#\"_agent_ip\"","value":"172.17.0.6"},{"id":2,"key":"#\"_manager_hostname\"","value":"wazuh-worker1"},{"id":2,"key":"#\"_node_name\"","value":"wazuh-worker1"},{"id":2,"key":"#\"_wazuh_version\"","value":"Wazuh v4.3.0"}]}]
Passed test_agent_info_sync.py::test_agent_info_sync_remove_agent 88.85
------------------------------Captured stderr call------------------------------
2021-08-30 12:55:13,083 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker2 and path: /var/ossec/logs/cluster.log 2021-08-30 12:55:13,085 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker2 and path: /var/ossec/logs/cluster.log 2021-08-30 12:55:13,085 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker2 and path: /var/ossec/logs/cluster.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_info_sync/tmp/wazuh-worker2_cluster.log.tmp 2021-08-30 12:55:13,088 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker2 and message: *Agents to remove.* Process Process-6: Traceback (most recent call last): File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/dist-packages/wazuh_testing-4.3.0-py3.9.egg/wazuh_testing/tools/monitoring.py", line 951, in _start self._queue.put({host: monitor.start(timeout=case['timeout'], File "/usr/local/lib/python3.9/dist-packages/wazuh_testing-4.3.0-py3.9.egg/wazuh_testing/tools/monitoring.py", line 457, in start result = self.get_results(callback=callback, accum_results=accum_results, timeout=timeout, File "/usr/local/lib/python3.9/dist-packages/wazuh_testing-4.3.0-py3.9.egg/wazuh_testing/tools/monitoring.py", line 421, in get_results item = callback(msg) File "/usr/local/lib/python3.9/dist-packages/wazuh_testing-4.3.0-py3.9.egg/wazuh_testing/tools/monitoring.py", line 831, in new_callback match = re.match(regex, line) File "/usr/lib/python3.9/re.py", line 191, in match return _compile(pattern, flags).match(string) File "/usr/lib/python3.9/re.py", line 304, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib/python3.9/sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "/usr/lib/python3.9/sre_parse.py", line 948, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "/usr/lib/python3.9/sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/lib/python3.9/sre_parse.py", line 668, in _parse raise source.error("nothing to repeat", re.error: nothing to repeat at position 0 2021-08-30 12:55:15,590 - wazuh_testing - DEBUG - Cleaning temporal files... 2021-08-30 12:55:15,591 - wazuh_testing - DEBUG - Checking results...
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-worker2 and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-worker2 and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:988 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:977 Checking results...