Skip to content

Commit

Permalink
feat: increase timeout to 40
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebits committed Mar 26, 2024
1 parent b69c1f0 commit 53b8e4f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

# Variables
test_group = 'group_test'
timeout = 25
timeout = 40


# Tests
Expand Down Expand Up @@ -107,12 +107,15 @@ def test_assign_agent_to_a_group(agent_target, initial_status, clean_environment
restart_cluster(test_infra_agents, host_manager)

time.sleep(timeout)

# Check that agent status is active in cluster
check_agent_status(agent_id, agent_name, agent_ip, AGENT_STATUS_ACTIVE, host_manager, test_infra_managers)

if (initial_status == AGENT_STATUS_DISCONNECTED):
host_manager.control_service(host='wazuh-agent1', service=WAZUH_SERVICE_PREFIX, state=WAZUH_SERVICES_STOPPED)

time.sleep(timeout)

check_agent_status(agent_id, agent_name, agent_ip, AGENT_STATUS_DISCONNECTED, host_manager, test_infra_managers)

try:
Expand All @@ -123,6 +126,7 @@ def test_assign_agent_to_a_group(agent_target, initial_status, clean_environment
assign_agent_to_new_group('wazuh-master', test_group, agent_id, host_manager)

time.sleep(timeout)

# Check that agent has group set to group_test on Managers
check_agent_groups(agent_id, test_group, test_infra_managers, host_manager)

Expand Down

0 comments on commit 53b8e4f

Please sign in to comment.