Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them snaow@DESKTOP-VMOO25G MINGW64 ~/wazuh_repos/wazuh-qa/deps/wazuh_testing/wazuh_testing/qa_ctl/deployment/dockerfiles/qa_ctl (master) $ qa-ctl --debug --qa-branch master -r test_add_old_resource 2021-12-16 22:19:37,080 - DEBUG - Downloading master files of wazuh-qa repository in C:\Users\snaow\AppData\Local\Temp\wazuh_qa_ctl\wazuh-qa 2021-12-16 22:19:39,819 - INFO - Validating input parameters 2021-12-16 22:19:42,227 - INFO - Input parameters validation has passed successfully 2021-12-16 22:19:42,227 - DEBUG - Generating configuration file 2021-12-16 22:19:43,023 - DEBUG - Configuration file has been created sucessfully in C:\Users\snaow\AppData\Local\Temp\wazuh_qa_ctl\config_1639689582.227009.yaml 2021-12-16 22:19:43,023 - DEBUG - Reading configuration_data 2021-12-16 22:19:43,032 - DEBUG - The configuration data has been read successfully 2021-12-16 22:19:43,032 - DEBUG - Validating configuration schema 2021-12-16 22:19:43,037 - DEBUG - Schema validation has passed successfully 2021-12-16 22:19:43,037 - DEBUG - qa_infraestructure - Processing deployment configuration 2021-12-16 22:19:43,037 - DEBUG - qa_infraestructure - Setting manager-test-add-old-resource-1639689583-016998 vagrant instance for deployment 2021-12-16 22:19:43,038 - DEBUG - vagrantfile - Vagrantfile written in C:\Users\snaow\AppData\Local\Temp\wazuh_qa_ctl\manager-test-add-old-resource-1639689583-016998\vagrantfile 2021-12-16 22:19:43,038 - DEBUG - qa_infraestructure - manager-test-add-old-resource-1639689583-016998 vagrant instance has been set successfully 2021-12-16 22:19:43,038 - DEBUG - qa_infraestructure - Deployment configuration processing has been finished successfully 2021-12-16 22:19:43,039 - INFO - qa_infraestructure - Starting 1 instances deployment 2021-12-16 22:19:43,039 - DEBUG - vagrant_wrapper - Running manager-test-add-old-resource-1639689583-016998 vagrant up 2021-12-16 22:20:49,182 - DEBUG - vagrant_wrapper - Instance manager-test-add-old-resource-1639689583-016998 has been created sucessfully 2021-12-16 22:20:49,182 - INFO - qa_infraestructure - The instances deployment has finished sucessfully 2021-12-16 22:20:49,182 - DEBUG - qa_provisioning - Processing inventory data from provisioning hosts info 2021-12-16 22:20:49,184 - DEBUG - qa_provisioning - The inventory data from provisioning hosts info has been processed successfully 2021-12-16 22:20:49,186 - INFO - local_actions - Building docker image for provisioning the instances 2021-12-16 22:20:53,356 - INFO - local_actions - Running the Linux container for provisioning the instances 2021-12-16 21:20:59,409 - DEBUG - Reading configuration_data 2021-12-16 21:20:59,424 - DEBUG - The configuration data has been read successfully 2021-12-16 21:20:59,424 - DEBUG - Validating configuration schema 2021-12-16 21:20:59,430 - DEBUG - Schema validation has passed successfully 2021-12-16 21:20:59,431 - DEBUG - qa_provisioning - Processing inventory data from provisioning hosts info 2021-12-16 21:20:59,432 - DEBUG - qa_provisioning - The inventory data from provisioning hosts info has been processed successfully 2021-12-16 21:20:59,432 - INFO - qa_provisioning - Checking hosts SSH connection 2021-12-16 21:20:59,433 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689659.432453.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:21:11,797 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689659.432453.yaml playbook file was deleted 2021-12-16 21:21:11,798 - INFO - qa_provisioning - Hosts connection OK. The instances are accessible via ssh 2021-12-16 21:21:11,798 - INFO - qa_provisioning - Provisioning 1 instances 2021-12-16 21:21:11,798 - DEBUG - wazuh_s3_package - Downloading Wazuh S3 package from https://packages.wazuh.com/4.x/yum/wazuh-manager-4.2.5-1.x86_64.rpm in 10.150.50.4 hosts 2021-12-16 21:21:11,798 - DEBUG - wazuh_s3_package - Wazuh S3 package was successfully downloaded in 10.150.50.4 hosts 2021-12-16 21:21:11,802 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689671.799049.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:21:22,238 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689671.799049.yaml playbook file was deleted 2021-12-16 21:21:22,245 - DEBUG - wazuh_deployment - Installing wazuh server via package in 10.150.50.4 hosts 2021-12-16 21:21:22,258 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689682.246866.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:22:10,690 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689682.246866.yaml playbook file was deleted 2021-12-16 21:22:10,691 - DEBUG - wazuh_deployment - Wazuh installation has been successfully done in 10.150.50.4 hosts 2021-12-16 21:22:10,692 - DEBUG - wazuh_deployment - starting wazuh service in 10.150.50.4 hosts 2021-12-16 21:22:10,695 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689730.692417.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:22:34,196 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689730.692417.yaml playbook file was deleted 2021-12-16 21:22:34,197 - DEBUG - wazuh_deployment - Wazuh service was started in 10.150.50.4 hosts 2021-12-16 21:22:34,197 - INFO - qa_provisioning - Performing a Wazuh installation healthcheck in 10.150.50.4 host 2021-12-16 21:23:04,224 - DEBUG - wazuh_deployment - Starting wazuh deployment healthcheck in 10.150.50.4 hosts 2021-12-16 21:23:04,228 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689784.224863.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:23:07,646 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689784.224863.yaml playbook file was deleted 2021-12-16 21:23:07,647 - DEBUG - wazuh_deployment - Wazuh deployment healthcheck OK in 10.150.50.4 hosts 2021-12-16 21:23:07,648 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689787.647361.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:23:10,253 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689787.647361.yaml playbook file was deleted 2021-12-16 21:23:10,254 - INFO - qa_provisioning - Provisioning the 10.150.50.4 host with the Wazuh QA framework using master branch. 2021-12-16 21:23:10,254 - DEBUG - qa_framework - Downloading qa-repository in 10.150.50.4 hosts 2021-12-16 21:23:10,257 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689790.254439.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:23:15,109 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689790.254439.yaml playbook file was deleted 2021-12-16 21:23:15,110 - DEBUG - qa_framework - master branch of QA repository has been downloaded successfully in 10.150.50.4 hosts 2021-12-16 21:23:15,110 - DEBUG - qa_framework - Installing python dependencies in 10.150.50.4 hosts 2021-12-16 21:23:15,113 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689795.110663.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:23:29,744 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689795.110663.yaml playbook file was deleted 2021-12-16 21:23:29,745 - DEBUG - qa_framework - Python dependencies have been installed successfully in 10.150.50.4 hosts 2021-12-16 21:23:29,745 - DEBUG - qa_framework - Installing wazuh-qa framework in 10.150.50.4 hosts. 2021-12-16 21:23:29,747 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689809.745729.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689659.431408.yaml inventory 2021-12-16 21:23:33,102 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689809.745729.yaml playbook file was deleted 2021-12-16 21:23:33,103 - DEBUG - qa_framework - wazuh-qa framework has been installed successfully in 10.150.50.4 hosts. 2021-12-16 21:23:33,103 - INFO - qa_provisioning - The instances have been provisioned sucessfully 2021-12-16 22:23:33,457 - DEBUG - qa_test_runner - Processing inventory data from testing hosts info 2021-12-16 22:23:33,459 - DEBUG - qa_test_runner - Inventory data from testing hosts info was processed successfully 2021-12-16 22:23:33,459 - DEBUG - qa_test_runner - Processing testing data from hosts 2021-12-16 22:23:33,459 - DEBUG - qa_test_runner - Testing data from hosts info was processed successfully 2021-12-16 22:23:33,463 - INFO - local_actions - Building docker image for launching the tests 2021-12-16 22:23:36,865 - INFO - local_actions - Running the Linux container for launching the tests 2021-12-16 21:23:44,419 - DEBUG - Reading configuration_data 2021-12-16 21:23:44,428 - DEBUG - The configuration data has been read successfully 2021-12-16 21:23:44,429 - DEBUG - Validating configuration schema 2021-12-16 21:23:44,434 - DEBUG - Schema validation has passed successfully 2021-12-16 21:23:44,435 - DEBUG - qa_test_runner - Processing inventory data from testing hosts info 2021-12-16 21:23:44,436 - DEBUG - qa_test_runner - Inventory data from testing hosts info was processed successfully 2021-12-16 21:23:44,436 - DEBUG - qa_test_runner - Processing testing data from hosts 2021-12-16 21:23:44,438 - DEBUG - qa_test_runner - Testing data from hosts info was processed successfully 2021-12-16 21:23:44,438 - INFO - qa_test_runner - Launching 1 tests 2021-12-16 21:23:44,438 - DEBUG - test_launcher - Setting local_internal_options configuration in ['10.150.50.4'] hosts with ['monitord.rotate_log=0'] 2021-12-16 21:23:44,439 - INFO - qa_test_runner - Waiting for tests to finish 2021-12-16 21:23:44,442 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl1639689824.438806.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689824.43528.yaml inventory 2021-12-16 21:23:50,221 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl1639689824.438806.yaml playbook file was deleted 2021-12-16 21:23:50,228 - INFO - pytest - Running /tmp/wazuh_qa_ctl/wazuh-qa/tests/integration/test_api/test_rbac/test_add_old_resource.py test on ['10.150.50.4'] hosts 2021-12-16 21:23:50,229 - DEBUG - pytest - Running python3 -m pytest /tmp/wazuh_qa_ctl/wazuh-qa/tests/integration/test_api/test_rbac/test_add_old_resource.py --tb=auto --html='/tmp/wazuh_qa_ctl/wazuh-qa/tests/integration/reports/test_report_2021_12_16_21_23_50_228176.html' on ['10.150.50.4'] hosts 2021-12-16 21:23:50,254 - DEBUG - ansible_runner - Running /tmp/wazuh_qa_ctl/1639689830.228313.yaml ansible-playbook with /tmp/wazuh_qa_ctl/1639689824.43528.yaml inventory 2021-12-16 21:24:05,307 - DEBUG - ansible_playbook - /tmp/wazuh_qa_ctl/1639689830.228313.yaml playbook file was deleted 2021-12-16 21:24:05,322 - INFO - pytest - ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 rootdir: /tmp/wazuh_qa_ctl/wazuh-qa/tests/integration, configfile: pytest.ini plugins: metadata-1.11.0, testinfra-5.0.0, html-3.1.1 collected 4 items test_api/test_rbac/test_add_old_resource.py .... [100%] - generated html file: file:///tmp/wazuh_qa_ctl/wazuh-qa/tests/integration/reports/test_report_2021_12_16_21_23_50_228176.html - ============================== 4 passed in 8.50s =============================== 2021-12-16 21:24:05,322 - INFO - qa_test_runner - The test run is finished 2021-12-16 22:24:05,654 - INFO - qa_test_runner - The results of /tmp/wazuh_qa_ctl/wazuh-qa/tests/integration/test_api/test_rbac/test_add_old_resource.py tests have been saved in C:\Users\snaow\AppData\Local\Temp\wazuh_qa_ctl\test_add_old_resource_1639689583.019928 2021-12-16 22:24:05,654 - INFO - qa_infraestructure - Destroying 1 instances 2021-12-16 22:24:05,655 - DEBUG - vagrant_wrapper - Running manager-test-add-old-resource-1639689583-016998 vagrant destroy 2021-12-16 22:24:12,353 - DEBUG - vagrant_wrapper - manager-test-add-old-resource-1639689583-016998 instance has been destroyed sucessfully 2021-12-16 22:24:12,353 - DEBUG - vagrantfile - C:\Users\snaow\AppData\Local\Temp\wazuh_qa_ctl\manager-test-add-old-resource-1639689583-016998\vagrantfile Vagrantfile was removed 2021-12-16 22:24:12,355 - INFO - qa_infraestructure - The instances have been destroyed sucessfully snaow@DESKTOP-VMOO25G MINGW64 ~/wazuh_repos/wazuh-qa/deps/wazuh_testing/wazuh_testing/qa_ctl/deployment/dockerfiles/qa_ctl (master)