Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta committed Oct 27, 2023
1 parent d801233 commit d6aa736
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests_e2e/tests/agent_cgroups/agent_cpu_quota.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from typing import List, Dict, Any

from tests_e2e.tests.lib.agent_test import AgentTest
from tests_e2e.tests.lib.agent_test import AgentVmTest
from tests_e2e.tests.lib.agent_test_context import AgentVmTestContext
from tests_e2e.tests.lib.logging import log


class AgentCPUQuota(AgentTest):
class AgentCPUQuota(AgentVmTest):
"""
The test verify that the agent detects when it is throttled for using too much CPU, that it detects processes that do belong to the agent's cgroup, and that resource metrics are generated.
"""
def __init__(self, context):
def __init__(self, context: AgentVmTestContext):
super().__init__(context)
self._ssh_client = self._context.create_ssh_client()

Expand Down

0 comments on commit d6aa736

Please sign in to comment.