python-gvm 24.3.0__tar.gz → 24.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_gvm-24.7.0/PKG-INFO +169 -0
- python_gvm-24.7.0/README.md +142 -0
- python_gvm-24.7.0/gvm/__version__.py +5 -0
- python_gvm-24.7.0/gvm/_enum.py +47 -0
- python_gvm-24.7.0/gvm/connections/__init__.py +32 -0
- python_gvm-24.7.0/gvm/connections/_connection.py +124 -0
- python_gvm-24.7.0/gvm/connections/_debug.py +74 -0
- python_gvm-24.7.0/gvm/connections/_ssh.py +352 -0
- python_gvm-24.7.0/gvm/connections/_tls.py +104 -0
- python_gvm-24.7.0/gvm/connections/_unix.py +54 -0
- python_gvm-24.7.0/gvm/errors.py +201 -0
- python_gvm-24.7.0/gvm/protocols/__init__.py +17 -0
- python_gvm-24.7.0/gvm/protocols/_protocol.py +136 -0
- python_gvm-24.7.0/gvm/protocols/core/__init__.py +15 -0
- python_gvm-24.7.0/gvm/protocols/core/_connection.py +201 -0
- python_gvm-24.7.0/gvm/protocols/core/_request.py +16 -0
- python_gvm-24.7.0/gvm/protocols/core/_response.py +115 -0
- python_gvm-24.7.0/gvm/protocols/gmp/__init__.py +30 -0
- python_gvm-24.7.0/gvm/protocols/gmp/_gmp.py +118 -0
- python_gvm-24.7.0/gvm/protocols/gmp/_gmp224.py +4300 -0
- python_gvm-24.7.0/gvm/protocols/gmp/_gmp225.py +95 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/__init__.py +11 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/_entity_id.py +8 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/_version.py +15 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/__init__.py +124 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_aggregates.py +200 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_alerts.py +477 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_audits.py +366 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_auth.py +77 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_cert_bund_advisories.py +67 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_cpes.py +68 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_credentials.py +536 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_cves.py +68 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_dfn_cert_advisories.py +68 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_entity_type.py +67 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_feed.py +46 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_filters.py +241 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_groups.py +166 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_help.py +49 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_hosts.py +142 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_notes.py +230 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_nvts.py +253 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_operating_systems.py +113 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_overrides.py +240 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_permissions.py +266 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_policies.py +423 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_port_lists.py +248 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_report_formats.py +256 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_reports.py +169 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_results.py +74 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_roles.py +157 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_scan_configs.py +510 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_scanners.py +298 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_schedules.py +230 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_secinfo.py +100 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_system_reports.py +68 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_tags.py +256 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_targets.py +371 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_tasks.py +425 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_tickets.py +206 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_tls_certificates.py +185 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_trashcan.py +39 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_user_settings.py +85 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_users.py +235 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_vulnerabilities.py +46 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v225/__init__.py +144 -0
- python_gvm-24.7.0/gvm/protocols/gmp/requests/v225/_resource_names.py +114 -0
- python_gvm-24.7.0/gvm/protocols/latest.py +32 -0
- python_gvm-24.7.0/gvm/protocols/next.py +32 -0
- python_gvm-24.7.0/gvm/protocols/ospv1.py +269 -0
- python_gvm-24.7.0/gvm/transforms.py +70 -0
- python_gvm-24.7.0/gvm/utils.py +181 -0
- python_gvm-24.7.0/gvm/xml.py +200 -0
- python_gvm-24.7.0/pyproject.toml +86 -0
- python_gvm-24.7.0/tests/connections/test_debug_connection.py +19 -0
- python_gvm-24.7.0/tests/connections/test_gvm_connection.py +62 -0
- python_gvm-24.7.0/tests/connections/test_ssh_connection.py +494 -0
- python_gvm-24.7.0/tests/connections/test_tls_connection.py +68 -0
- python_gvm-24.7.0/tests/connections/test_unix_socket_connection.py +114 -0
- python_gvm-24.7.0/tests/protocols/__init__.py +29 -0
- python_gvm-24.7.0/tests/protocols/core/__init__.py +3 -0
- python_gvm-24.7.0/tests/protocols/core/test_connection.py +146 -0
- python_gvm-24.7.0/tests/protocols/core/test_request.py +24 -0
- python_gvm-24.7.0/tests/protocols/core/test_response.py +103 -0
- python_gvm-24.7.0/tests/protocols/core/test_states.py +172 -0
- python_gvm-24.7.0/tests/protocols/core/test_xml_reader.py +16 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/__init__.py +3 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/test_version.py +16 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/__init__.py +3 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_aggregates.py +350 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_alerts.py +838 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_audits.py +752 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_auth.py +92 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_cert_bund_advisories.py +69 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_cpes.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_credentials.py +844 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_cves.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_dfn_cert_advisories.py +69 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_feed.py +51 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_filters.py +247 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_groups.py +190 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_help.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_hosts.py +138 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_notes.py +365 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_nvts.py +267 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_operating_systems.py +114 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_overrides.py +509 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_permissions.py +310 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_policies.py +507 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_port_lists.py +338 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_report_formats.py +300 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_reports.py +227 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_results.py +91 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_roles.py +147 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_scan_configs.py +777 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_scanners.py +424 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_schedules.py +219 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_secinfo.py +87 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_system_report.py +59 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_tags.py +354 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_targets.py +649 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_tasks.py +733 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_tickets.py +247 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_tls_certificates.py +246 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_trashcan.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_user_settings.py +74 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_users.py +266 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v224/test_vulnerabilities.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v225/__init__.py +3 -0
- python_gvm-24.7.0/tests/protocols/gmp/requests/v225/test_resource_names.py +417 -0
- python_gvm-24.7.0/tests/protocols/gmp/test_context_manager.py +141 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/__init__.py +13 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_clone_alert.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_create_alert.py +416 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_delete_alert.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_get_alert.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_get_alerts.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_modify_alert.py +215 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_test_alert.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/alerts/test_trigger_alert.py +74 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_clone_audit.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_create_audit.py +374 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_delete_audit.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_get_audit.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_get_audits.py +55 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_modify_audit.py +183 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_resume_audit.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_start_audit.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/audits/test_stop_audit.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_clone_credential.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_create_credential.py +446 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_delete_credential.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_get_credential.py +88 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_get_credentials.py +64 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/credentials/test_modify_credential.py +203 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_clone_filter.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_create_filter.py +103 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_delete_filter.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_get_filter.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_get_filters.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/filters/test_modify_filter.py +66 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_clone_group.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_create_group.py +60 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_delete_group.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_get_group.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_get_groups.py +32 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/groups/test_modify_group.py +58 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/hosts/test_create_host.py +40 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/hosts/test_delete_host.py +19 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/hosts/test_get_host.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/hosts/test_get_hosts.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/hosts/test_modify_host.py +60 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_clone_note.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_create_note.py +156 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_delete_note.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_get_note.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_get_notes.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/notes/test_modify_note.py +149 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/operating_systems/test_delete_operating_system.py +19 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/operating_systems/test_get_operating_system.py +39 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/operating_systems/test_get_operating_systems.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/operating_systems/test_modify_operating_system.py +64 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_clone_override.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_create_override.py +189 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_delete_override.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_get_override.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_get_overrides.py +51 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/overrides/test_modify_override.py +184 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_clone_permission.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_create_permission.py +174 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_delete_permission.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_get_permission.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_get_permissions.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/permissions/test_modify_permission.py +204 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_clone_policy.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_create_policy.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_delete_policy.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_get_policies.py +90 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_get_policy.py +30 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_import_policy.py +39 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_comment.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_family_selection.py +192 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_name.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_nvt_preference.py +94 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_nvt_selection.py +105 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/policies/test_modify_policy_set_scanner_preference.py +71 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_clone_port_list.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_create_port_list.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_create_port_range.py +145 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_delete_port_list.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_delete_port_range.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_get_port_list.py +25 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_get_port_lists.py +64 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/port_lists/test_modify_port_list.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_clone_report_format.py +34 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_delete_report_format.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_get_report_format.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_get_report_formats.py +77 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_import_report_format.py +40 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_modify_report_format.py +110 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/report_formats/test_verify_report_format.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/reports/test_delete_report.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/reports/test_get_report.py +81 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/reports/test_get_reports.py +63 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/reports/test_import_report.py +70 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/results/test_get_result.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/results/test_get_results.py +67 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_clone_role.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_create_role.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_delete_role.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_get_role.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_get_roles.py +32 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/roles/test_modify_role.py +62 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/__init__.py +50 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_clone_scan_config.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_create_scan_config.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_delete_scan_config.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config.py +30 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config_preference.py +39 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config_preferences.py +25 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_configs.py +90 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_import_scan_config.py +39 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config.py +137 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_comment.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_family_selection.py +244 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_name.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_nvt_preference.py +94 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_nvt_selection.py +113 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_scanner_preference.py +75 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_clone_scanner.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_create_scanner.py +193 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_delete_scanner.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_get_scanner.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_get_scanners.py +47 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_modify_scanner.py +127 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/scanners/test_verify_scanner.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_clone_schedule.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_create_schedule.py +86 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_delete_schedule.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_get_schedule.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_get_schedules.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/schedules/test_modify_schedule.py +69 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cert_bund_advisories.py +47 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cert_bund_advisory.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cpe.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cpes.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cve.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_cves.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_dfn_cert_advisories.py +47 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_dfn_cert_advisory.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_info.py +75 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_info_list.py +95 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_nvt.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_nvt_families.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_nvt_preference.py +32 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_nvt_preferences.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_nvts.py +125 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_oval_definition.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_oval_definitions.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_scan_config_nvt.py +26 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/secinfo/test_get_scan_config_nvts.py +86 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_clone_tag.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_create_tag.py +259 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_delete_tag.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_get_tag.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_get_tags.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tags/test_modify_tag.py +187 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_clone_target.py +26 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_create_target.py +225 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_delete_target.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_get_target.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_get_targets.py +43 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/targets/test_modify_target.py +211 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_clone_task.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_create_container_task.py +36 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_create_task.py +374 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_delete_task.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_get_task.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_get_tasks.py +68 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_modify_task.py +181 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_move_task.py +27 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_resume_task.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_start_task.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tasks/test_stop_task.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_alerts.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_audits.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_credentials.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_filters.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_groups.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_hosts.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_notes.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_operating_systems.py +36 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_overrides.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_permissions.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_policies.py +80 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_port_lists.py +58 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_report_formats.py +57 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_reports.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_results.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_roles.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_scan_configs.py +90 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_scanners.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_schedules.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_secinfo.py +91 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_tags.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_targets.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_tasks.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_tickets.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_tls_certificates.py +50 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_users.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/test_vulnerabilities.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_clone_ticket.py +31 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_create_ticket.py +60 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_delete_ticket.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_get_ticket.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_get_tickets.py +34 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tickets/test_modify_ticket.py +100 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_clone_tls_certificate.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_create_tls_certificate.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_delete_tls_certificate.py +26 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_get_tls_certificate.py +23 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_get_tls_certificates.py +32 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/tls_certificates/test_modify_tls_certificate.py +57 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_clone_user.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_create_user.py +71 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_delete_user.py +50 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_get_user.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_get_users.py +23 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/users/test_modify_user.py +152 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/vulnerabilities/test_get_vulnerabilities.py +23 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/entities/vulnerabilities/test_get_vulnerability.py +24 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_aggregate_statistic.py +61 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_alert_condition.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_alert_event.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_alert_method.py +73 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_alive_test.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_credential_format.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_credential_type.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_entity_type.py +166 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_feed_type.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_filter_type.py +138 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_help_format.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_hosts_ordering.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_info_type.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_permission_subject_type.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_port_range_type.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_report_format_type.py +101 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_scanner_type.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_snmp_algorithms.py +52 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_sort_order.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_ticket_status.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/enums/test_user_auth_type.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/aggregates/test_get_aggregates.py +354 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/authentication/test_authenticate.py +58 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/authentication/test_describe_auth.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/authentication/test_modify_auth.py +57 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/feed/test_get_feed.py +52 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/feed/test_get_feeds.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/help/test_help.py +30 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/system_reports/test_get_system_reports.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_aggregates.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_authentication.py +25 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_feed.py +15 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_help.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_system_reports.py +13 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_trashcan.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_user_settings.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/test_versions.py +17 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/trashcan/test_empty_trashcan.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/trashcan/test_restore_from_trashcan.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/user_settings/test_get_user_setting.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/user_settings/test_get_user_settings.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/user_settings/test_modify_user_setting.py +52 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/system/versions/test_get_version.py +14 -0
- python_gvm-24.7.0/tests/protocols/gmpv224/test_gmp_types.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/__init__.py +13 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/resourcenames/test_get_resource_name.py +238 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/resourcenames/test_get_resource_names_list.py +192 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_alerts.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_audits.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_credentials.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_filters.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_groups.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_hosts.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_notes.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_operating_systems.py +36 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_overrides.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_permissions.py +48 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_policies.py +80 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_port_lists.py +58 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_report_formats.py +57 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_reports.py +28 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_results.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_roles.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_scan_configs.py +90 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_scanners.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_schedules.py +44 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_secinfo.py +91 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_tags.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_targets.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_tasks.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_tickets.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_tls_certificates.py +50 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_users.py +38 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/entities/test_vulnerabilities.py +22 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_aggregate_statistic.py +61 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_alert_condition.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_alert_event.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_alert_method.py +73 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_alive_test.py +65 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_credential_format.py +45 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_credential_type.py +49 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_entity_type.py +166 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_feed_type.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_filter_type.py +138 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_help_format.py +41 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_hosts_ordering.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_info_type.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_permission_subject_type.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_port_range_type.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_report_format_type.py +101 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_resource_type.py +133 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_scanner_type.py +53 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_snmp_algorithms.py +52 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_sort_order.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_ticket_status.py +33 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/enums/test_user_auth_type.py +37 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_aggregates.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_authentication.py +25 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_feed.py +15 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_help.py +11 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_system_reports.py +13 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_trashcan.py +20 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_user_settings.py +29 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/system/test_versions.py +18 -0
- python_gvm-24.7.0/tests/protocols/gmpv225/test_gmp_types.py +37 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_delete_scan.py +34 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_get_scanner_details.py +25 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_get_scans.py +34 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_get_version.py +25 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_get_vts.py +32 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_help.py +25 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_start_scan.py +89 -0
- python_gvm-24.7.0/tests/protocols/osp/test_osp_stop_scan.py +35 -0
- python_gvm-24.7.0/tests/test_enum.py +85 -0
- python_gvm-24.7.0/tests/test_errors.py +214 -0
- python_gvm-24.7.0/tests/transforms/test_check_command_transform.py +65 -0
- python_gvm-24.7.0/tests/transforms/test_etree_check_command_transform.py +45 -0
- python_gvm-24.7.0/tests/transforms/test_etree_transform.py +27 -0
- python_gvm-24.7.0/tests/utils/test_check_command_status.py +67 -0
- python_gvm-24.7.0/tests/utils/test_to_base64.py +21 -0
- python_gvm-24.7.0/tests/xml/test_parse_xml.py +32 -0
- python_gvm-24.7.0/tests/xml/test_pretty_print.py +169 -0
- python_gvm-24.3.0/PKG-INFO +0 -164
- python_gvm-24.3.0/README.md +0 -135
- python_gvm-24.3.0/gvm/__version__.py +0 -5
- python_gvm-24.3.0/gvm/_enum.py +0 -38
- python_gvm-24.3.0/gvm/connections.py +0 -636
- python_gvm-24.3.0/gvm/errors.py +0 -187
- python_gvm-24.3.0/gvm/protocols/__init__.py +0 -22
- python_gvm-24.3.0/gvm/protocols/base.py +0 -129
- python_gvm-24.3.0/gvm/protocols/gmp.py +0 -119
- python_gvm-24.3.0/gvm/protocols/gmpv208/__init__.py +0 -183
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/alerts.py +0 -518
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/audits.py +0 -437
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/credentials.py +0 -532
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/entities.py +0 -68
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/filter.py +0 -256
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/groups.py +0 -173
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/hosts.py +0 -143
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/notes.py +0 -264
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/operating_systems.py +0 -117
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/overrides.py +0 -299
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/permissions.py +0 -281
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/policies.py +0 -429
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/port_lists.py +0 -260
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/report_formats.py +0 -279
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/reports.py +0 -179
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/results.py +0 -75
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/roles.py +0 -166
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/scan_configs.py +0 -626
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/scanners.py +0 -317
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/schedules.py +0 -234
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/secinfo.py +0 -620
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/tags.py +0 -273
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/targets.py +0 -370
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/tasks.py +0 -489
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/tickets.py +0 -217
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/tls_certificates.py +0 -195
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/users.py +0 -278
- python_gvm-24.3.0/gvm/protocols/gmpv208/entities/vulnerabilities.py +0 -51
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/aggregates.py +0 -198
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/authentication.py +0 -101
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/feed.py +0 -55
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/help.py +0 -57
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/system_reports.py +0 -66
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/trashcan.py +0 -42
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/user_settings.py +0 -87
- python_gvm-24.3.0/gvm/protocols/gmpv208/system/version.py +0 -31
- python_gvm-24.3.0/gvm/protocols/gmpv214/__init__.py +0 -187
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/__init__.py +0 -4
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/notes.py +0 -167
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/overrides.py +0 -196
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/scanners.py +0 -204
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/targets.py +0 -245
- python_gvm-24.3.0/gvm/protocols/gmpv214/entities/users.py +0 -110
- python_gvm-24.3.0/gvm/protocols/gmpv214/system/__init__.py +0 -4
- python_gvm-24.3.0/gvm/protocols/gmpv214/system/version.py +0 -23
- python_gvm-24.3.0/gvm/protocols/gmpv224/__init__.py +0 -189
- python_gvm-24.3.0/gvm/protocols/gmpv224/entities/__init__.py +0 -4
- python_gvm-24.3.0/gvm/protocols/gmpv224/entities/scan_configs.py +0 -582
- python_gvm-24.3.0/gvm/protocols/gmpv224/entities/scanners.py +0 -201
- python_gvm-24.3.0/gvm/protocols/gmpv224/entities/users.py +0 -176
- python_gvm-24.3.0/gvm/protocols/gmpv224/system/__init__.py +0 -4
- python_gvm-24.3.0/gvm/protocols/gmpv224/system/version.py +0 -23
- python_gvm-24.3.0/gvm/protocols/gmpv225/__init__.py +0 -197
- python_gvm-24.3.0/gvm/protocols/gmpv225/entities/resourcenames.py +0 -126
- python_gvm-24.3.0/gvm/protocols/gmpv225/system/version.py +0 -22
- python_gvm-24.3.0/gvm/protocols/latest.py +0 -80
- python_gvm-24.3.0/gvm/protocols/next.py +0 -80
- python_gvm-24.3.0/gvm/protocols/ospv1.py +0 -277
- python_gvm-24.3.0/gvm/transforms.py +0 -68
- python_gvm-24.3.0/gvm/utils.py +0 -100
- python_gvm-24.3.0/gvm/xml.py +0 -138
- python_gvm-24.3.0/pyproject.toml +0 -77
- python_gvm-24.3.0/tests/connections/test_gvm_connection.py +0 -73
- python_gvm-24.3.0/tests/connections/test_ssh_connection.py +0 -500
- python_gvm-24.3.0/tests/connections/test_tls_connection.py +0 -69
- python_gvm-24.3.0/tests/connections/test_unix_socket_connection.py +0 -124
- python_gvm-24.3.0/tests/protocols/__init__.py +0 -27
- python_gvm-24.3.0/tests/protocols/gmp/test_context_manager.py +0 -144
- python_gvm-24.3.0/tests/protocols/gmpv208/__init__.py +0 -12
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_clone_alert.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_create_alert.py +0 -412
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_delete_alert.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_get_alert.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_get_alerts.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_modify_alert.py +0 -211
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_test_alert.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/alerts/test_trigger_alert.py +0 -76
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_clone_audit.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_create_audit.py +0 -422
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_delete_audit.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_get_audit.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_get_audits.py +0 -55
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_modify_audit.py +0 -202
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_resume_audit.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_start_audit.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/audits/test_stop_audit.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_clone_credential.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_create_credential.py +0 -415
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_delete_credential.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_get_credential.py +0 -88
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_get_credentials.py +0 -64
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/credentials/test_modify_credential.py +0 -200
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_clone_filter.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_create_filter.py +0 -103
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_delete_filter.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_get_filter.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_get_filters.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/filters/test_modify_filter.py +0 -66
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_clone_group.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_create_group.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_delete_group.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_get_group.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_get_groups.py +0 -32
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/groups/test_modify_group.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/hosts/test_create_host.py +0 -40
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/hosts/test_delete_host.py +0 -19
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/hosts/test_get_host.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/hosts/test_get_hosts.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/hosts/test_modify_host.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_clone_note.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_create_note.py +0 -175
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_delete_note.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_get_note.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_get_notes.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/notes/test_modify_note.py +0 -169
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/operating_systems/test_delete_operating_system.py +0 -19
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/operating_systems/test_get_operating_system.py +0 -39
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/operating_systems/test_get_operating_systems.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/operating_systems/test_modify_operating_system.py +0 -64
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_clone_override.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_create_override.py +0 -230
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_delete_override.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_get_override.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_get_overrides.py +0 -47
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/overrides/test_modify_override.py +0 -232
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_clone_permission.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_create_permission.py +0 -174
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_delete_permission.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_get_permission.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_get_permissions.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/permissions/test_modify_permission.py +0 -204
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_clone_policy.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_create_policy.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_delete_policy.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_get_policies.py +0 -90
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_get_policy.py +0 -30
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_import_policy.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_comment.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_family_selection.py +0 -220
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_name.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_nvt_preference.py +0 -94
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_nvt_selection.py +0 -113
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/policies/test_modify_policy_set_scanner_preference.py +0 -71
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_clone_port_list.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_create_port_list.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_create_port_range.py +0 -145
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_delete_port_list.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_delete_port_range.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_get_port_list.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_get_port_lists.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/port_lists/test_modify_port_list.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_clone_report_format.py +0 -34
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_delete_report_format.py +0 -39
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_get_report_format.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_get_report_formats.py +0 -77
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_import_report_format.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_modify_report_format.py +0 -110
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/report_formats/test_verify_report_format.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/reports/test_delete_report.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/reports/test_get_report.py +0 -81
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/reports/test_get_reports.py +0 -63
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/reports/test_import_report.py +0 -74
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/results/test_get_result.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/results/test_get_results.py +0 -63
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_clone_role.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_create_role.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_delete_role.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_get_role.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_get_roles.py +0 -32
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/roles/test_modify_role.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/__init__.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_clone_scan_config.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_create_scan_config.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_create_scan_config_from_osp_scanner.py +0 -55
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_delete_scan_config.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_get_scan_config.py +0 -30
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_get_scan_config_preference.py +0 -39
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_get_scan_config_preferences.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_get_scan_configs.py +0 -90
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_import_scan_config.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config.py +0 -137
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_comment.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_family_selection.py +0 -244
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_name.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_nvt_preference.py +0 -94
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_nvt_selection.py +0 -113
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_modify_scan_config_set_scanner_preference.py +0 -75
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scan_configs/test_sync_scan_config.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_clone_scanner.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_create_scanner.py +0 -184
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_delete_scanner.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_get_scanner.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_get_scanners.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_modify_scanner.py +0 -136
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/scanners/test_verify_scanner.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_clone_schedule.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_create_schedule.py +0 -86
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_delete_schedule.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_get_schedule.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_get_schedules.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/schedules/test_modify_schedule.py +0 -69
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cert_bund_advisories.py +0 -47
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cert_bund_advisory.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cpe.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cpes.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cve.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_cves.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_dfn_cert_advisories.py +0 -47
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_dfn_cert_advisory.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_info.py +0 -75
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_info_list.py +0 -95
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_nvt.py +0 -51
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_nvt_families.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_nvt_preference.py +0 -32
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_nvt_preferences.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_nvts.py +0 -119
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_oval_definition.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_oval_definitions.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_scan_config_nvt.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/secinfo/test_get_scan_config_nvts.py +0 -80
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_clone_tag.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_create_tag.py +0 -259
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_delete_tag.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_get_tag.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_get_tags.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tags/test_modify_tag.py +0 -187
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_clone_target.py +0 -26
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_create_target.py +0 -246
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_delete_target.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_get_target.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_get_targets.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/targets/test_modify_target.py +0 -194
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_clone_task.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_create_container_task.py +0 -36
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_create_task.py +0 -422
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_delete_task.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_get_task.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_get_tasks.py +0 -55
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_modify_task.py +0 -200
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_move_task.py +0 -27
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_resume_task.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_start_task.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tasks/test_stop_task.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_alerts.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_audits.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_credentials.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_filters.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_groups.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_hosts.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_notes.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_operating_systems.py +0 -36
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_overrides.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_permissions.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_policies.py +0 -80
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_port_lists.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_report_formats.py +0 -57
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_reports.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_results.py +0 -15
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_roles.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_scan_configs.py +0 -125
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_scanners.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_schedules.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_secinfo.py +0 -117
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_secinfo.py.rej +0 -7
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_tags.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_targets.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_tasks.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_tickets.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_tls_certificates.py +0 -50
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_users.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/test_vulnerabilities.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_clone_ticket.py +0 -31
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_create_ticket.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_delete_ticket.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_get_ticket.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_get_tickets.py +0 -32
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tickets/test_modify_ticket.py +0 -100
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_clone_tls_certificate.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_create_tls_certificate.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_delete_tls_certificate.py +0 -26
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_get_tls_certificate.py +0 -23
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_get_tls_certificates.py +0 -32
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/tls_certificates/test_modify_tls_certificate.py +0 -55
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_clone_user.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_create_user.py +0 -101
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_delete_user.py +0 -46
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_get_user.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_get_users.py +0 -23
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/users/test_modify_user.py +0 -203
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/vulnerabilities/test_get_vulnerabilities.py +0 -23
- python_gvm-24.3.0/tests/protocols/gmpv208/entities/vulnerabilities/test_get_vulnerability.py +0 -24
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_aggregate_statistic.py +0 -61
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_alert_condition.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_alert_event.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_alert_method.py +0 -73
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_alive_test.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_credential_format.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_credential_type.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_entity_type.py +0 -166
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_feed_type.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_filter_type.py +0 -138
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_help_format.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_hosts_ordering.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_info_type.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_permission_subject_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_port_range_type.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_report_format_type.py +0 -101
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_scanner_type.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_severity_level.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_snmp_algorithms.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_sort_order.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_ticket_status.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv208/enums/test_user_auth_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/system/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv208/system/aggregates/test_get_aggregates.py +0 -343
- python_gvm-24.3.0/tests/protocols/gmpv208/system/authentication/test_authenticate.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv208/system/authentication/test_describe_auth.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/system/authentication/test_modify_auth.py +0 -57
- python_gvm-24.3.0/tests/protocols/gmpv208/system/feed/test_get_feed.py +0 -52
- python_gvm-24.3.0/tests/protocols/gmpv208/system/feed/test_get_feeds.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/system/help/test_help.py +0 -30
- python_gvm-24.3.0/tests/protocols/gmpv208/system/system_reports/test_get_system_reports.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_aggregates.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_authentication.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_feed.py +0 -15
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_help.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_system_reports.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_trashcan.py +0 -17
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_user_settings.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv208/system/test_versions.py +0 -17
- python_gvm-24.3.0/tests/protocols/gmpv208/system/trashcan/test_empty_trashcan.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv208/system/trashcan/test_restore_from_trashcan.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv208/system/user_settings/test_get_user_setting.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv208/system/user_settings/test_get_user_settings.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv208/system/user_settings/test_modify_user_setting.py +0 -52
- python_gvm-24.3.0/tests/protocols/gmpv208/system/versions/test_get_protocol_version.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv208/system/versions/test_get_version.py +0 -14
- python_gvm-24.3.0/tests/protocols/gmpv208/test_gmp_types.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv208/test_with_statement.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv214/__init__.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/notes/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/notes/test_create_note.py +0 -167
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/notes/test_modify_note.py +0 -159
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/overrides/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/overrides/test_create_override.py +0 -214
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/overrides/test_modify_override.py +0 -212
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/scanners/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/scanners/test_create_scanner.py +0 -193
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/scanners/test_modify_scanner.py +0 -137
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/targets/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/targets/test_create_target.py +0 -225
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/targets/test_modify_target.py +0 -211
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_alerts.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_audits.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_credentials.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_filters.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_groups.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_hosts.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_notes.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_operating_systems.py +0 -36
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_overrides.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_permissions.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_policies.py +0 -80
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_port_lists.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_report_formats.py +0 -57
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_reports.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_results.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_roles.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_scan_configs.py +0 -111
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_scanners.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_schedules.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_secinfo.py +0 -103
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_tags.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_targets.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_tasks.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_tickets.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_tls_certificates.py +0 -50
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_users.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/test_vulnerabilities.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/users/__init__.py +0 -8
- python_gvm-24.3.0/tests/protocols/gmpv214/entities/users/test_modify_user.py +0 -185
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_aggregate_statistic.py +0 -61
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_alert_condition.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_alert_event.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_alert_method.py +0 -73
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_alive_test.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_credential_format.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_credential_type.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_entity_type.py +0 -166
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_feed_type.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_filter_type.py +0 -138
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_help_format.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_hosts_ordering.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_info_type.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_permission_subject_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_port_range_type.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_report_format_type.py +0 -101
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_scanner_type.py +0 -60
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_severity_level.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_snmp_algorithms.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_sort_order.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_ticket_status.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv214/enums/test_user_auth_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/system/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_aggregates.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_authentication.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_feed.py +0 -15
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_help.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_system_reports.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_trashcan.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_user_settings.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv214/system/test_versions.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv214/system/versions/__init__.py +0 -8
- python_gvm-24.3.0/tests/protocols/gmpv214/system/versions/test_get_protocol_version.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv214/test_gmp_types.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv214/test_with_statement.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv224/__init__.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/notes/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/notes/test_create_note.py +0 -167
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/notes/test_modify_note.py +0 -159
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/overrides/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/overrides/test_create_override.py +0 -214
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/overrides/test_modify_override.py +0 -207
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/__init__.py +0 -52
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_clone_scan_config.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_create_scan_config.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_delete_scan_config.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config.py +0 -30
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config_preference.py +0 -39
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_config_preferences.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_get_scan_configs.py +0 -90
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_import_scan_config.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config.py +0 -137
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_comment.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_family_selection.py +0 -244
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_name.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_nvt_preference.py +0 -94
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_nvt_selection.py +0 -113
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scan_configs/test_modify_scan_config_set_scanner_preference.py +0 -75
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scanners/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scanners/test_create_scanner.py +0 -193
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/scanners/test_modify_scanner.py +0 -127
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/targets/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/targets/test_create_target.py +0 -225
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/targets/test_modify_target.py +0 -211
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_alerts.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_audits.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_credentials.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_filters.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_groups.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_hosts.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_notes.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_operating_systems.py +0 -36
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_overrides.py +0 -43
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_permissions.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_policies.py +0 -80
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_port_lists.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_report_formats.py +0 -57
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_reports.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_results.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_roles.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_scan_configs.py +0 -97
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_scanners.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_schedules.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_secinfo.py +0 -103
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_tags.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_targets.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_tasks.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_tickets.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_tls_certificates.py +0 -50
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_users.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/test_vulnerabilities.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/users/__init__.py +0 -9
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/users/test_create_user.py +0 -110
- python_gvm-24.3.0/tests/protocols/gmpv224/entities/users/test_modify_user.py +0 -188
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_aggregate_statistic.py +0 -61
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_alert_condition.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_alert_event.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_alert_method.py +0 -73
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_alive_test.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_credential_format.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_credential_type.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_entity_type.py +0 -166
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_feed_type.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_filter_type.py +0 -138
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_help_format.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_hosts_ordering.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_info_type.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_permission_subject_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_port_range_type.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_report_format_type.py +0 -101
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_scanner_type.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_severity_level.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_snmp_algorithms.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_sort_order.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_ticket_status.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv224/enums/test_user_auth_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv224/system/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_aggregates.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_authentication.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_feed.py +0 -15
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_help.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_system_reports.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_trashcan.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_user_settings.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv224/system/test_versions.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv224/system/versions/__init__.py +0 -8
- python_gvm-24.3.0/tests/protocols/gmpv224/test_gmp_types.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv225/__init__.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/resourcenames/test_get_resource_name.py +0 -238
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/resourcenames/test_get_resource_names_list.py +0 -194
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_alerts.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_audits.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_credentials.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_filters.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_groups.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_hosts.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_notes.py +0 -40
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_operating_systems.py +0 -36
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_overrides.py +0 -46
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_permissions.py +0 -48
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_policies.py +0 -80
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_port_lists.py +0 -58
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_report_formats.py +0 -57
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_reports.py +0 -28
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_results.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_roles.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_scan_configs.py +0 -97
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_scanners.py +0 -40
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_schedules.py +0 -44
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_secinfo.py +0 -103
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_tags.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_targets.py +0 -40
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_tasks.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_tickets.py +0 -38
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_tls_certificates.py +0 -50
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_users.py +0 -117
- python_gvm-24.3.0/tests/protocols/gmpv225/entities/test_vulnerabilities.py +0 -22
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_aggregate_statistic.py +0 -61
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_alert_condition.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_alert_event.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_alert_method.py +0 -73
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_alive_test.py +0 -65
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_credential_format.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_credential_type.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_entity_type.py +0 -166
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_feed_type.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_filter_type.py +0 -138
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_help_format.py +0 -41
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_hosts_ordering.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_info_type copy.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_permission_subject_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_port_range_type.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_report_format_type.py +0 -101
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_resource_type.py +0 -133
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_scanner_type.py +0 -53
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_severity_level.py +0 -45
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_snmp_algorithms.py +0 -49
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_sort_order.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_ticket_status.py +0 -33
- python_gvm-24.3.0/tests/protocols/gmpv225/enums/test_user_auth_type.py +0 -37
- python_gvm-24.3.0/tests/protocols/gmpv225/system/__init__.py +0 -4
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_aggregates.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_authentication.py +0 -25
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_feed.py +0 -15
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_help.py +0 -11
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_system_reports.py +0 -13
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_trashcan.py +0 -20
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_user_settings.py +0 -29
- python_gvm-24.3.0/tests/protocols/gmpv225/system/test_versions.py +0 -18
- python_gvm-24.3.0/tests/protocols/gmpv225/test_gmp_types.py +0 -37
- python_gvm-24.3.0/tests/protocols/osp/test_osp_delete_scan.py +0 -31
- python_gvm-24.3.0/tests/protocols/osp/test_osp_get_scanner_details.py +0 -25
- python_gvm-24.3.0/tests/protocols/osp/test_osp_get_scans.py +0 -34
- python_gvm-24.3.0/tests/protocols/osp/test_osp_get_version.py +0 -25
- python_gvm-24.3.0/tests/protocols/osp/test_osp_get_vts.py +0 -32
- python_gvm-24.3.0/tests/protocols/osp/test_osp_help.py +0 -25
- python_gvm-24.3.0/tests/protocols/osp/test_osp_start_scan.py +0 -89
- python_gvm-24.3.0/tests/protocols/osp/test_osp_stop_scan.py +0 -35
- python_gvm-24.3.0/tests/test_errors.py +0 -214
- python_gvm-24.3.0/tests/transforms/test_check_command_transform.py +0 -65
- python_gvm-24.3.0/tests/transforms/test_etree_check_command_transform.py +0 -45
- python_gvm-24.3.0/tests/transforms/test_etree_transform.py +0 -27
- python_gvm-24.3.0/tests/utils/test_check_command_status.py +0 -62
- python_gvm-24.3.0/tests/utils/test_to_base64.py +0 -21
- python_gvm-24.3.0/tests/xml/test_pretty_print.py +0 -170
- python_gvm-24.3.0/tests/xml/test_valid_xml_string.py +0 -32
- {python_gvm-24.3.0 → python_gvm-24.7.0}/LICENSE +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/gvm/__init__.py +0 -0
- /python_gvm-24.3.0/gvm/protocols/gmpv208/entities/severity.py → /python_gvm-24.7.0/gvm/protocols/gmp/requests/v224/_severity.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/gvm/py.typed +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/connections/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmp/__init__.py +0 -0
- {python_gvm-24.3.0/gvm/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/alerts/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/audits/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/credentials/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/filters/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/groups/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/hosts/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/notes/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/operating_systems/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/overrides/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/permissions/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/policies/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/port_lists/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/report_formats/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/reports/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/results/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/roles/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/scanners/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/schedules/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/secinfo/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/tags/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/targets/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/tasks/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/tickets/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/tls_certificates/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/users/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/entities/vulnerabilities/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv214 → python_gvm-24.7.0/tests/protocols/gmpv224}/enums/__init__.py +0 -0
- {python_gvm-24.3.0/gvm/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/aggregates/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/authentication/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/feed/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/help/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/system_reports/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/trashcan/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/user_settings/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv208 → python_gvm-24.7.0/tests/protocols/gmpv224}/system/versions/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv224/system/versions/test_get_protocol_version.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv224/test_with_statement.py +0 -0
- {python_gvm-24.3.0/gvm → python_gvm-24.7.0/tests}/protocols/gmpv225/entities/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv225/entities/resourcenames/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv225/entities/test_resource_names.py +0 -0
- {python_gvm-24.3.0/gvm/protocols/gmpv225/system → python_gvm-24.7.0/tests/protocols/gmpv225/enums}/__init__.py +0 -0
- {python_gvm-24.3.0/tests/protocols/gmpv225/entities → python_gvm-24.7.0/tests/protocols/gmpv225/system}/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv225/system/versions/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv225/system/versions/test_get_protocol_version.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/gmpv225/test_with_statement.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/osp/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/test_latest.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/protocols/test_next.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/transforms/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_add_filter.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_check_port.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_deprecation.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_is_list_like.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_to_bool.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/utils/test_to_comma_list.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/xml/__init__.py +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/xml/test.file +0 -0
- {python_gvm-24.3.0 → python_gvm-24.7.0}/tests/xml/test_xml_command.py +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: python-gvm
|
|
3
|
+
Version: 24.7.0
|
|
4
|
+
Summary: Library to communicate with remote servers over GMP or OSP
|
|
5
|
+
Home-page: https://github.com/greenbone/python-gvm/
|
|
6
|
+
License: GPL-3.0-or-later
|
|
7
|
+
Author: Greenbone AG
|
|
8
|
+
Author-email: info@greenbone.net
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Dist: lxml (>=4.5.0)
|
|
22
|
+
Requires-Dist: paramiko (>=2.7.1)
|
|
23
|
+
Project-URL: Documentation, https://greenbone.github.io/python-gvm/
|
|
24
|
+
Project-URL: Repository, https://github.com/greenbone/python-gvm/
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
# Greenbone Vulnerability Management Python Library <!-- omit in toc -->
|
|
30
|
+
|
|
31
|
+
[](https://github.com/greenbone/python-gvm/releases)
|
|
32
|
+
[](https://pypi.org/project/python-gvm/)
|
|
33
|
+
[](https://codecov.io/gh/greenbone/python-gvm)
|
|
34
|
+
[](https://github.com/greenbone/python-gvm/actions/workflows/ci.yml)
|
|
35
|
+
|
|
36
|
+
The Greenbone Vulnerability Management Python API library (**python-gvm**) is a
|
|
37
|
+
collection of APIs that help with remote controlling Greenbone Community Edition
|
|
38
|
+
installations and Greenbone Enterprise Appliances. The library essentially
|
|
39
|
+
abstracts accessing the communication protocols Greenbone Management Protocol
|
|
40
|
+
(GMP) and Open Scanner Protocol (OSP).
|
|
41
|
+
|
|
42
|
+
## Table of Contents <!-- omit in toc -->
|
|
43
|
+
|
|
44
|
+
- [Documentation](#documentation)
|
|
45
|
+
- [Installation](#installation)
|
|
46
|
+
- [Version](#version)
|
|
47
|
+
- [Requirements](#requirements)
|
|
48
|
+
- [Install using pip](#install-using-pip)
|
|
49
|
+
- [Example](#example)
|
|
50
|
+
- [Support](#support)
|
|
51
|
+
- [Maintainer](#maintainer)
|
|
52
|
+
- [Contributing](#contributing)
|
|
53
|
+
- [License](#license)
|
|
54
|
+
|
|
55
|
+
## Documentation
|
|
56
|
+
|
|
57
|
+
The documentation for python-gvm can be found at
|
|
58
|
+
[https://greenbone.github.io/python-gvm/](https://greenbone.github.io/python-gvm/).
|
|
59
|
+
Please always take a look at the documentation for further details. This
|
|
60
|
+
**README** just gives you a short overview.
|
|
61
|
+
|
|
62
|
+
## Installation
|
|
63
|
+
|
|
64
|
+
### Version
|
|
65
|
+
|
|
66
|
+
Please consider to always use the **newest** version of `gvm-tools` and `python-gvm`.
|
|
67
|
+
We frequently update this projects to add features and keep them free from bugs.
|
|
68
|
+
This is why installing `python-gvm` using pip is recommended.
|
|
69
|
+
|
|
70
|
+
> [!IMPORTANT]
|
|
71
|
+
> To use `python-gvm` with GMP version of 7, 8 or 9 you must use a release version
|
|
72
|
+
> that is `<21.5`. In the `21.5` release the support of these versions has been
|
|
73
|
+
> dropped.
|
|
74
|
+
|
|
75
|
+
> [!IMPORTANT]
|
|
76
|
+
> To use `python-gvm` with GMP version 20.8 or 21.4 you must use a release version
|
|
77
|
+
> that is `<24.6`. In the `24.6` release the support of these versions has been
|
|
78
|
+
> dropped.
|
|
79
|
+
|
|
80
|
+
### Requirements
|
|
81
|
+
|
|
82
|
+
Python 3.9 and later is supported.
|
|
83
|
+
|
|
84
|
+
### Install using pip
|
|
85
|
+
|
|
86
|
+
You can install the latest stable release of python-gvm from the Python Package
|
|
87
|
+
Index using [pip](https://pip.pypa.io/):
|
|
88
|
+
|
|
89
|
+
python3 -m pip install --user python-gvm
|
|
90
|
+
|
|
91
|
+
## Example
|
|
92
|
+
|
|
93
|
+
```python3
|
|
94
|
+
from gvm.connections import UnixSocketConnection
|
|
95
|
+
from gvm.protocols.gmp import Gmp
|
|
96
|
+
from gvm.transforms import EtreeTransform
|
|
97
|
+
from gvm.xml import pretty_print
|
|
98
|
+
|
|
99
|
+
connection = UnixSocketConnection()
|
|
100
|
+
transform = EtreeTransform()
|
|
101
|
+
|
|
102
|
+
with Gmp(connection, transform=transform) as gmp:
|
|
103
|
+
# Retrieve GMP version supported by the remote daemon
|
|
104
|
+
version = gmp.get_version()
|
|
105
|
+
|
|
106
|
+
# Prints the XML in beautiful form
|
|
107
|
+
pretty_print(version)
|
|
108
|
+
|
|
109
|
+
# Login
|
|
110
|
+
gmp.authenticate('foo', 'bar')
|
|
111
|
+
|
|
112
|
+
# Retrieve all tasks
|
|
113
|
+
tasks = gmp.get_tasks()
|
|
114
|
+
|
|
115
|
+
# Get names of tasks
|
|
116
|
+
task_names = tasks.xpath('task/name/text()')
|
|
117
|
+
pretty_print(task_names)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Support
|
|
121
|
+
|
|
122
|
+
For any question on the usage of python-gvm please use the
|
|
123
|
+
[Greenbone Community Forum](https://forum.greenbone.net/c/building-from-source-under-the-hood/gmp/11). If you
|
|
124
|
+
found a problem with the software, please
|
|
125
|
+
[create an issue](https://github.com/greenbone/python-gvm/issues)
|
|
126
|
+
on GitHub.
|
|
127
|
+
|
|
128
|
+
## Maintainer
|
|
129
|
+
|
|
130
|
+
This project is maintained by [Greenbone AG](https://www.greenbone.net/).
|
|
131
|
+
|
|
132
|
+
## Contributing
|
|
133
|
+
|
|
134
|
+
Your contributions are highly appreciated. Please
|
|
135
|
+
[create a pull request](https://github.com/greenbone/python-gvm/pulls) on GitHub.
|
|
136
|
+
For bigger changes, please discuss it first in the
|
|
137
|
+
[issues](https://github.com/greenbone/python-gvm/issues).
|
|
138
|
+
|
|
139
|
+
For development you should use [poetry](https://python-poetry.org)
|
|
140
|
+
to keep you python packages separated in different environments. First install
|
|
141
|
+
poetry via pip
|
|
142
|
+
|
|
143
|
+
```shell
|
|
144
|
+
python3 -m pip install --user poetry
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Afterwards run
|
|
148
|
+
|
|
149
|
+
```shell
|
|
150
|
+
poetry install
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
in the checkout directory of python-gvm (the directory containing the
|
|
154
|
+
`pyproject.toml` file) to install all dependencies including the packages only
|
|
155
|
+
required for development.
|
|
156
|
+
|
|
157
|
+
The python-gvm repository uses [autohooks](https://github.com/greenbone/autohooks)
|
|
158
|
+
to apply linting and auto formatting via git hooks. Please ensure the git hooks
|
|
159
|
+
are active.
|
|
160
|
+
|
|
161
|
+
$ poetry install
|
|
162
|
+
$ poetry run autohooks activate --force
|
|
163
|
+
|
|
164
|
+
## License
|
|
165
|
+
|
|
166
|
+
Copyright (C) 2017-2024 [Greenbone AG](https://www.greenbone.net/)
|
|
167
|
+
|
|
168
|
+
Licensed under the [GNU General Public License v3.0 or later](LICENSE).
|
|
169
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Greenbone Vulnerability Management Python Library <!-- omit in toc -->
|
|
4
|
+
|
|
5
|
+
[](https://github.com/greenbone/python-gvm/releases)
|
|
6
|
+
[](https://pypi.org/project/python-gvm/)
|
|
7
|
+
[](https://codecov.io/gh/greenbone/python-gvm)
|
|
8
|
+
[](https://github.com/greenbone/python-gvm/actions/workflows/ci.yml)
|
|
9
|
+
|
|
10
|
+
The Greenbone Vulnerability Management Python API library (**python-gvm**) is a
|
|
11
|
+
collection of APIs that help with remote controlling Greenbone Community Edition
|
|
12
|
+
installations and Greenbone Enterprise Appliances. The library essentially
|
|
13
|
+
abstracts accessing the communication protocols Greenbone Management Protocol
|
|
14
|
+
(GMP) and Open Scanner Protocol (OSP).
|
|
15
|
+
|
|
16
|
+
## Table of Contents <!-- omit in toc -->
|
|
17
|
+
|
|
18
|
+
- [Documentation](#documentation)
|
|
19
|
+
- [Installation](#installation)
|
|
20
|
+
- [Version](#version)
|
|
21
|
+
- [Requirements](#requirements)
|
|
22
|
+
- [Install using pip](#install-using-pip)
|
|
23
|
+
- [Example](#example)
|
|
24
|
+
- [Support](#support)
|
|
25
|
+
- [Maintainer](#maintainer)
|
|
26
|
+
- [Contributing](#contributing)
|
|
27
|
+
- [License](#license)
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
The documentation for python-gvm can be found at
|
|
32
|
+
[https://greenbone.github.io/python-gvm/](https://greenbone.github.io/python-gvm/).
|
|
33
|
+
Please always take a look at the documentation for further details. This
|
|
34
|
+
**README** just gives you a short overview.
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
### Version
|
|
39
|
+
|
|
40
|
+
Please consider to always use the **newest** version of `gvm-tools` and `python-gvm`.
|
|
41
|
+
We frequently update this projects to add features and keep them free from bugs.
|
|
42
|
+
This is why installing `python-gvm` using pip is recommended.
|
|
43
|
+
|
|
44
|
+
> [!IMPORTANT]
|
|
45
|
+
> To use `python-gvm` with GMP version of 7, 8 or 9 you must use a release version
|
|
46
|
+
> that is `<21.5`. In the `21.5` release the support of these versions has been
|
|
47
|
+
> dropped.
|
|
48
|
+
|
|
49
|
+
> [!IMPORTANT]
|
|
50
|
+
> To use `python-gvm` with GMP version 20.8 or 21.4 you must use a release version
|
|
51
|
+
> that is `<24.6`. In the `24.6` release the support of these versions has been
|
|
52
|
+
> dropped.
|
|
53
|
+
|
|
54
|
+
### Requirements
|
|
55
|
+
|
|
56
|
+
Python 3.9 and later is supported.
|
|
57
|
+
|
|
58
|
+
### Install using pip
|
|
59
|
+
|
|
60
|
+
You can install the latest stable release of python-gvm from the Python Package
|
|
61
|
+
Index using [pip](https://pip.pypa.io/):
|
|
62
|
+
|
|
63
|
+
python3 -m pip install --user python-gvm
|
|
64
|
+
|
|
65
|
+
## Example
|
|
66
|
+
|
|
67
|
+
```python3
|
|
68
|
+
from gvm.connections import UnixSocketConnection
|
|
69
|
+
from gvm.protocols.gmp import Gmp
|
|
70
|
+
from gvm.transforms import EtreeTransform
|
|
71
|
+
from gvm.xml import pretty_print
|
|
72
|
+
|
|
73
|
+
connection = UnixSocketConnection()
|
|
74
|
+
transform = EtreeTransform()
|
|
75
|
+
|
|
76
|
+
with Gmp(connection, transform=transform) as gmp:
|
|
77
|
+
# Retrieve GMP version supported by the remote daemon
|
|
78
|
+
version = gmp.get_version()
|
|
79
|
+
|
|
80
|
+
# Prints the XML in beautiful form
|
|
81
|
+
pretty_print(version)
|
|
82
|
+
|
|
83
|
+
# Login
|
|
84
|
+
gmp.authenticate('foo', 'bar')
|
|
85
|
+
|
|
86
|
+
# Retrieve all tasks
|
|
87
|
+
tasks = gmp.get_tasks()
|
|
88
|
+
|
|
89
|
+
# Get names of tasks
|
|
90
|
+
task_names = tasks.xpath('task/name/text()')
|
|
91
|
+
pretty_print(task_names)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Support
|
|
95
|
+
|
|
96
|
+
For any question on the usage of python-gvm please use the
|
|
97
|
+
[Greenbone Community Forum](https://forum.greenbone.net/c/building-from-source-under-the-hood/gmp/11). If you
|
|
98
|
+
found a problem with the software, please
|
|
99
|
+
[create an issue](https://github.com/greenbone/python-gvm/issues)
|
|
100
|
+
on GitHub.
|
|
101
|
+
|
|
102
|
+
## Maintainer
|
|
103
|
+
|
|
104
|
+
This project is maintained by [Greenbone AG](https://www.greenbone.net/).
|
|
105
|
+
|
|
106
|
+
## Contributing
|
|
107
|
+
|
|
108
|
+
Your contributions are highly appreciated. Please
|
|
109
|
+
[create a pull request](https://github.com/greenbone/python-gvm/pulls) on GitHub.
|
|
110
|
+
For bigger changes, please discuss it first in the
|
|
111
|
+
[issues](https://github.com/greenbone/python-gvm/issues).
|
|
112
|
+
|
|
113
|
+
For development you should use [poetry](https://python-poetry.org)
|
|
114
|
+
to keep you python packages separated in different environments. First install
|
|
115
|
+
poetry via pip
|
|
116
|
+
|
|
117
|
+
```shell
|
|
118
|
+
python3 -m pip install --user poetry
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Afterwards run
|
|
122
|
+
|
|
123
|
+
```shell
|
|
124
|
+
poetry install
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
in the checkout directory of python-gvm (the directory containing the
|
|
128
|
+
`pyproject.toml` file) to install all dependencies including the packages only
|
|
129
|
+
required for development.
|
|
130
|
+
|
|
131
|
+
The python-gvm repository uses [autohooks](https://github.com/greenbone/autohooks)
|
|
132
|
+
to apply linting and auto formatting via git hooks. Please ensure the git hooks
|
|
133
|
+
are active.
|
|
134
|
+
|
|
135
|
+
$ poetry install
|
|
136
|
+
$ poetry run autohooks activate --force
|
|
137
|
+
|
|
138
|
+
## License
|
|
139
|
+
|
|
140
|
+
Copyright (C) 2017-2024 [Greenbone AG](https://www.greenbone.net/)
|
|
141
|
+
|
|
142
|
+
Licensed under the [GNU General Public License v3.0 or later](LICENSE).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Greenbone AG
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
#
|
|
5
|
+
|
|
6
|
+
from enum import Enum as PythonEnum
|
|
7
|
+
from typing import Any, Optional, Type, TypeVar
|
|
8
|
+
|
|
9
|
+
from gvm.errors import InvalidArgument
|
|
10
|
+
|
|
11
|
+
Self = TypeVar("Self", bound="Enum")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Enum(PythonEnum):
|
|
15
|
+
"""
|
|
16
|
+
Base class for Enums in python-gvm
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
@classmethod
|
|
20
|
+
def _missing_(cls: Type[Self], value: Any) -> Optional[Self]:
|
|
21
|
+
if isinstance(value, PythonEnum):
|
|
22
|
+
return cls.from_string(value.name)
|
|
23
|
+
return cls.from_string(str(value) if value else None)
|
|
24
|
+
|
|
25
|
+
@classmethod
|
|
26
|
+
def from_string(
|
|
27
|
+
cls: Type[Self],
|
|
28
|
+
value: Optional[str],
|
|
29
|
+
) -> Optional[Self]:
|
|
30
|
+
"""
|
|
31
|
+
Convert a string value into an Enum instance
|
|
32
|
+
|
|
33
|
+
If value is None or empty None is returned
|
|
34
|
+
"""
|
|
35
|
+
if not value:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
try:
|
|
39
|
+
return cls[value.replace(" ", "_").upper()]
|
|
40
|
+
except KeyError:
|
|
41
|
+
raise InvalidArgument(
|
|
42
|
+
f"Invalid argument {value}. "
|
|
43
|
+
f"Allowed values are {','.join(e.name for e in cls)}."
|
|
44
|
+
) from None
|
|
45
|
+
|
|
46
|
+
def __str__(self) -> str:
|
|
47
|
+
return self.value
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Greenbone AG
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
from ._connection import DEFAULT_TIMEOUT, GvmConnection
|
|
6
|
+
from ._debug import DebugConnection
|
|
7
|
+
from ._ssh import (
|
|
8
|
+
DEFAULT_HOSTNAME,
|
|
9
|
+
DEFAULT_KNOWN_HOSTS_FILE,
|
|
10
|
+
DEFAULT_SSH_PASSWORD,
|
|
11
|
+
DEFAULT_SSH_PORT,
|
|
12
|
+
DEFAULT_SSH_USERNAME,
|
|
13
|
+
SSHConnection,
|
|
14
|
+
)
|
|
15
|
+
from ._tls import DEFAULT_GVM_PORT, TLSConnection
|
|
16
|
+
from ._unix import DEFAULT_UNIX_SOCKET_PATH, UnixSocketConnection
|
|
17
|
+
|
|
18
|
+
__all__ = (
|
|
19
|
+
"DEFAULT_TIMEOUT",
|
|
20
|
+
"DEFAULT_UNIX_SOCKET_PATH",
|
|
21
|
+
"DEFAULT_GVM_PORT",
|
|
22
|
+
"DEFAULT_HOSTNAME",
|
|
23
|
+
"DEFAULT_KNOWN_HOSTS_FILE",
|
|
24
|
+
"DEFAULT_SSH_PASSWORD",
|
|
25
|
+
"DEFAULT_SSH_USERNAME",
|
|
26
|
+
"DEFAULT_SSH_PORT",
|
|
27
|
+
"DebugConnection",
|
|
28
|
+
"GvmConnection",
|
|
29
|
+
"SSHConnection",
|
|
30
|
+
"TLSConnection",
|
|
31
|
+
"UnixSocketConnection",
|
|
32
|
+
)
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Greenbone AG
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
import socket as socketlib
|
|
7
|
+
from abc import ABC, abstractmethod
|
|
8
|
+
from time import time
|
|
9
|
+
from typing import Optional, Protocol, Union, runtime_checkable
|
|
10
|
+
|
|
11
|
+
from gvm.errors import GvmError
|
|
12
|
+
|
|
13
|
+
BUF_SIZE = 16 * 1024
|
|
14
|
+
|
|
15
|
+
DEFAULT_TIMEOUT = 60 # in seconds
|
|
16
|
+
|
|
17
|
+
logger = logging.getLogger(__name__)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@runtime_checkable
|
|
21
|
+
class GvmConnection(Protocol):
|
|
22
|
+
"""
|
|
23
|
+
Python `protocol <https://docs.python.org/3/library/typing.html#typing.Protocol>`_
|
|
24
|
+
for GvmConnection classes.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
def connect(self) -> None:
|
|
28
|
+
"""Establish a connection to a remote server"""
|
|
29
|
+
|
|
30
|
+
def disconnect(self) -> None:
|
|
31
|
+
"""Send data to the connected remote server
|
|
32
|
+
|
|
33
|
+
Arguments:
|
|
34
|
+
data: Data to be send to the server. Either utf-8 encoded string or
|
|
35
|
+
bytes.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
def send(self, data: bytes) -> None:
|
|
39
|
+
"""Send data to the connected remote server
|
|
40
|
+
|
|
41
|
+
Args:
|
|
42
|
+
data: Data to be send to the server as bytes.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def read(self) -> bytes:
|
|
46
|
+
"""Read data from the remote server
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
data as bytes
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def finish_send(self):
|
|
53
|
+
"""Indicate to the remote server you are done with sending data"""
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class AbstractGvmConnection(ABC):
|
|
57
|
+
"""
|
|
58
|
+
Base class for establishing a connection to a remote server daemon.
|
|
59
|
+
|
|
60
|
+
Arguments:
|
|
61
|
+
timeout: Timeout in seconds for the connection. None to
|
|
62
|
+
wait indefinitely
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
def __init__(self, timeout: Optional[Union[int, float]] = DEFAULT_TIMEOUT):
|
|
66
|
+
self._socket: Optional[socketlib.SocketType] = None
|
|
67
|
+
self._timeout = timeout if timeout is not None else DEFAULT_TIMEOUT
|
|
68
|
+
|
|
69
|
+
def _read(self) -> bytes:
|
|
70
|
+
if self._socket is None:
|
|
71
|
+
raise GvmError("Socket is not connected")
|
|
72
|
+
|
|
73
|
+
return self._socket.recv(BUF_SIZE)
|
|
74
|
+
|
|
75
|
+
@abstractmethod
|
|
76
|
+
def connect(self) -> None:
|
|
77
|
+
"""Establish a connection to a remote server"""
|
|
78
|
+
raise NotImplementedError
|
|
79
|
+
|
|
80
|
+
def send(self, data: bytes) -> None:
|
|
81
|
+
"""Send data to the connected remote server
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
data: Data to be send to the server as bytes.
|
|
85
|
+
"""
|
|
86
|
+
if self._socket is None:
|
|
87
|
+
raise GvmError("Socket is not connected")
|
|
88
|
+
|
|
89
|
+
self._socket.sendall(data)
|
|
90
|
+
|
|
91
|
+
def read(self) -> bytes:
|
|
92
|
+
"""Read data from the remote server
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
data as bytes
|
|
96
|
+
"""
|
|
97
|
+
break_timeout = (
|
|
98
|
+
time() + self._timeout if self._timeout is not None else None
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
data = self._read()
|
|
102
|
+
|
|
103
|
+
if not data:
|
|
104
|
+
# Connection was closed by server
|
|
105
|
+
raise GvmError("Remote closed the connection")
|
|
106
|
+
|
|
107
|
+
if break_timeout and time() > break_timeout:
|
|
108
|
+
raise GvmError("Timeout while reading the response")
|
|
109
|
+
|
|
110
|
+
return data
|
|
111
|
+
|
|
112
|
+
def disconnect(self) -> None:
|
|
113
|
+
"""Disconnect and close the connection to the remote server"""
|
|
114
|
+
try:
|
|
115
|
+
if self._socket is not None:
|
|
116
|
+
self._socket.close()
|
|
117
|
+
except OSError as e:
|
|
118
|
+
logger.debug("Connection closing error: %s", e)
|
|
119
|
+
|
|
120
|
+
def finish_send(self):
|
|
121
|
+
"""Indicate to the remote server you are done with sending data"""
|
|
122
|
+
if self._socket is not None:
|
|
123
|
+
# shutdown socket for sending. only allow reading data afterwards
|
|
124
|
+
self._socket.shutdown(socketlib.SHUT_WR)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Greenbone AG
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
|
|
7
|
+
from ._connection import GvmConnection
|
|
8
|
+
|
|
9
|
+
logger = logging.getLogger("gvm.connections.debug")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DebugConnection:
|
|
13
|
+
"""Wrapper around a connection for debugging purposes
|
|
14
|
+
|
|
15
|
+
Allows to debug the connection flow including send and read data. Internally
|
|
16
|
+
it uses the python `logging`_ framework to create debug messages. Please
|
|
17
|
+
take a look at `the logging tutorial
|
|
18
|
+
<https://docs.python.org/3/howto/logging.html#logging-basic-tutorial>`_
|
|
19
|
+
for further details.
|
|
20
|
+
|
|
21
|
+
Example:
|
|
22
|
+
|
|
23
|
+
.. code-block:: python
|
|
24
|
+
|
|
25
|
+
import logging
|
|
26
|
+
|
|
27
|
+
logging.basicConfig(level=logging.DEBUG)
|
|
28
|
+
|
|
29
|
+
socket_connection = UnixSocketConnection(path='/var/run/gvm.sock')
|
|
30
|
+
connection = DebugConnection(socket_connection)
|
|
31
|
+
gmp = Gmp(connection=connection)
|
|
32
|
+
|
|
33
|
+
.. _logging:
|
|
34
|
+
https://docs.python.org/3/library/logging.html
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, connection: GvmConnection):
|
|
38
|
+
"""
|
|
39
|
+
Create a new DebugConnection instance.
|
|
40
|
+
|
|
41
|
+
Args:
|
|
42
|
+
connection: GvmConnection to observe
|
|
43
|
+
"""
|
|
44
|
+
self._connection = connection
|
|
45
|
+
|
|
46
|
+
def read(self) -> bytes:
|
|
47
|
+
data = self._connection.read()
|
|
48
|
+
|
|
49
|
+
logger.debug("Read %s characters. Data %r", len(data), data)
|
|
50
|
+
|
|
51
|
+
self.last_read_data = data
|
|
52
|
+
return data
|
|
53
|
+
|
|
54
|
+
def send(self, data: bytes) -> None:
|
|
55
|
+
self.last_send_data = data
|
|
56
|
+
|
|
57
|
+
logger.debug("Sending %s characters. Data %r", len(data), data)
|
|
58
|
+
|
|
59
|
+
return self._connection.send(data)
|
|
60
|
+
|
|
61
|
+
def connect(self) -> None:
|
|
62
|
+
logger.debug("Connecting")
|
|
63
|
+
|
|
64
|
+
return self._connection.connect()
|
|
65
|
+
|
|
66
|
+
def disconnect(self) -> None:
|
|
67
|
+
logger.debug("Disconnecting")
|
|
68
|
+
|
|
69
|
+
return self._connection.disconnect()
|
|
70
|
+
|
|
71
|
+
def finish_send(self) -> None:
|
|
72
|
+
logger.debug("Finish send")
|
|
73
|
+
|
|
74
|
+
self._connection.finish_send()
|