Skip to content

Commit

Permalink
enhancement(#5229): Fixing validations in basic_info agent name
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Apr 30, 2024
1 parent e253748 commit 263373d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ def test_wazuh_os_version(wazuh_params):

if not os_type == 'windows':
assert HostInformation.get_os_version_from_inventory(agent_params) in WazuhAgent.get_agent_os_version_by_name(wazuh_api, agent_names), logger.error('There is a mismatch between the OS version and the OS version of the installed agent')
if os_type == 'linux':
os_name = HostInformation.get_os_name_from_inventory(agent_params)
elif os_type == 'macos':

if os_type == 'macos':
os_name = 'macos'
else:
os_name = HostInformation.get_os_name_from_inventory(agent_params)

assert os_name in WazuhAgent.get_agent_os_name_by_name(wazuh_api, agent_names).replace(' ', ''), logger.error('There is a mismatch between the OS name and the OS name of the installed agent')

Expand Down

0 comments on commit 263373d

Please sign in to comment.