Report generated on 26-Aug-2022 at 11:34:00 by pytest-html v3.1.1
Packages | {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.2"} |
Platform | Linux-5.18.10-76051810-generic-x86_64-with-glibc2.35 |
Plugins | {"html": "3.1.1", "metadata": "2.0.1", "testinfra": "5.0.0"} |
Python | 3.9.7 |
0 tests ran in 33.80 seconds.
(Un)check the boxes to filter the results.
0 passed, 0 skipped, 0 failed, 1 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Error | tests/end_to_end/test_basic_cases/test_audit/test_audit.py::test_audit[ping_google]::setup | 33.69 | |
request = <SubRequest 'get_dashboard_credentials' for <Function test_audit[ping_google]>> @pytest.fixture(scope='module') def get_dashboard_credentials(request): """Get wazuh-dashboard username and password. Returns: dict: wazuh-dashboard credentials. """ inventory_playbook = request.config.getoption('--inventory_path') if not inventory_playbook: raise ValueError('Inventory not specified') inventories = [inventory_playbook] > inventory_data = ansible_runner.get_inventory(action='host', inventories=inventories, response_format='json', host='managers') tests/end_to_end/conftest.py:173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /root/.pyenv/versions/3.9.7/lib/python3.9/site-packages/ansible_runner/interface.py:706: in get_inventory response = json.loads(sanitize_json_response(response)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = 'usage: ansible-inventory [-h] [--version] [-v] [-i INVENTORY]\n [--vault-id VAULT_IDS]\n ...orks as inventory script\n\nShow Ansible inventory information, by default it uses the inventory script\nJSON format\n' def sanitize_json_response(data): ''' Removes warning message from response message emitted by Ansible command line utilities. :param str data: The string data to be sanitized ''' start_re = re.compile("{(.|\n)*", re.MULTILINE) > data = start_re.search(data).group().strip() E AttributeError: 'NoneType' object has no attribute 'group' /root/.pyenv/versions/3.9.7/lib/python3.9/site-packages/ansible_runner/utils/__init__.py:512: AttributeError -----------------------------Captured stdout setup------------------------------ PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Generate a general validation playbook] ********************************** changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 PLAY [General validation phase] ************************************************ TASK [Gathering Facts] ********************************************************* ok: [centos-manager] TASK [host_checker : Set flag and informative variable] ************************ ok: [centos-manager] TASK [host_checker : Check default Python version (Linux)] ********************* skipping: [centos-manager] TASK [host_checker : Get Python version (Windows)] ***************************** skipping: [centos-manager] TASK [host_checker : Check default Python version (Windows)] ******************* skipping: [centos-manager] TASK [host_checker : Check OS (Linux)] ***************************************** skipping: [centos-manager] TASK [host_checker : Check OS (Windows)] *************************************** skipping: [centos-manager] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** changed: [centos-manager] TASK [host_checker : Populate services facts] ********************************** ok: [centos-manager] TASK [host_checker : Check the status of Wazuh components (Manager)] *********** skipping: [centos-manager] => (item=wazuh-manager.service) skipping: [centos-manager] => (item=wazuh-indexer.service) skipping: [centos-manager] => (item=filebeat.service) TASK [host_checker : set_fact] ************************************************* skipping: [centos-manager] TASK [host_checker : Check the status of Wazuh Agent] ************************** skipping: [centos-manager] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** changed: [centos-manager] TASK [host_checker : Run filebeat test] **************************************** changed: [centos-manager] TASK [host_checker : Check the connection between Filebeat and Wazuh Indexer] *** skipping: [centos-manager] TASK [Get Wazuh installation] ************************************************** TASK [service_controller : Get installation type] ****************************** changed: [centos-manager] TASK [host_checker : Test connection with Wazuh Indexer] *********************** fatal: [centos-manager -> localhost]: FAILED! => {"changed": false, "msg": "The shell action failed to execute in the expected time frame (3) and was terminated"} ...ignoring TASK [host_checker : Check the connection between Controller node and Wazuh Indexer] *** skipping: [centos-manager] TASK [host_checker : set_fact] ************************************************* ok: [centos-manager] TASK [host_checker : Verify if any check have failed] ************************** skipping: [centos-manager] PLAY RECAP ********************************************************************* centos-manager : ok=9 changed=4 unreachable=0 failed=0 skipped=11 rescued=0 ignored=1 [WARNING]: Could not match supplied host pattern, ignoring: managers PLAY [Configure manager environment] ******************************************* skipping: no hosts matched PLAY RECAP ********************************************************************* usage: ansible-inventory [-h] [--version] [-v] [-i INVENTORY] [--vault-id VAULT_IDS] [--ask-vault-password | --vault-password-file VAULT_PASSWORD_FILES] [--playbook-dir BASEDIR] [-e EXTRA_VARS] [--list] [--host HOST] [--graph] [-y] [--toml] [--vars] [--export] [--output OUTPUT_FILE] [host|group] positional arguments: host|group optional arguments: --ask-vault-password, --ask-vault-pass ask for vault password --export When doing an --list, represent in a way that is optimized for export,not as an accurate representation of how Ansible has processed it --output OUTPUT_FILE When doing --list, send the inventory to a file instead of to the screen --playbook-dir BASEDIR Since this tool does not use playbooks, use this as a substitute playbook directory.This sets the relative path for many features including roles/ group_vars/ etc. --toml Use TOML format instead of default JSON, ignored for --graph --vars Add vars to graph display, ignored unless used with --graph --vault-id VAULT_IDS the vault identity to use --vault-password-file VAULT_PASSWORD_FILES, --vault-pass-file VAULT_PASSWORD_FILES vault password file --version show program's version number, config file location, configured module search path, module location, executable location and exit -e EXTRA_VARS, --extra-vars EXTRA_VARS set additional variables as key=value or YAML/JSON, if filename prepend with @ -h, --help show this help message and exit -i INVENTORY, --inventory INVENTORY, --inventory-file INVENTORY specify inventory host path or comma separated host list. --inventory-file is deprecated -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) -y, --yaml Use YAML format instead of default JSON, ignored for --graph Actions: One of following must be used on invocation, ONLY ONE! --graph create inventory graph, if supplying pattern it must be a valid group name --host HOST Output specific host info, works as inventory script --list Output all hosts info, works as inventory script Show Ansible inventory information, by default it uses the inventory script JSON format [WARNING]: Could not match supplied host pattern, ignoring: managers ERROR! You must pass a single valid host to --host parameter ----------------------------Captured stdout teardown---------------------------- [WARNING]: Could not match supplied host pattern, ignoring: managers PLAY [Cleanup manager environment] ********************************************* skipping: no hosts matched PLAY RECAP ********************************************************************* |