-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2945 from wazuh/2792-SUSE-suppor-4-4
IT VDT - Add SUSE Linux Enterpise Support for 4.4
- Loading branch information
Showing
44 changed files
with
1,035 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
import pytest | ||
|
||
from subprocess import CalledProcessError | ||
|
||
from wazuh_testing.tools.services import control_service | ||
|
@@ -111,6 +112,10 @@ def prepare_full_scan_with_vuln_packages_and_custom_system(agent_system, mock_ag | |
# Insert vulnerable packages | ||
package_vendor = 'Red Hat, Inc.' if 'RHEL' in agent_system else 'wazuh-mocking' | ||
|
||
if 'SLES' in agent_system: | ||
package_vendor = 'SUSE LLC <https://www.suse.com/>' | ||
vd.insert_suse_system_package(agent_id=mock_agent_with_custom_system, version=agent_system) | ||
|
||
vd.insert_vulnerable_packages(agent_id=mock_agent_with_custom_system, vendor=package_vendor) | ||
|
||
# Update sync info for packages | ||
|
Oops, something went wrong.