Versions in this module Expand all Collapse all v0 v0.2.253 Apr 7, 2025 Changes in this version + func AssertContains(t *testing.T, alerts []Alert, expectedRuleName string, expectedCommand string, ...) + func AssertNetworkNeighborhoodContains(t *testing.T, nn *v1beta1.NetworkNeighborhood, containerName string, ...) + func AssertNetworkNeighborhoodNotContains(t *testing.T, nn *v1beta1.NetworkNeighborhood, containerName string, ...) + func AssertNotContains(t *testing.T, alerts []Alert, notExpectedRuleName string, ...) + func ExecIntoPod(podName, podNamespace string, command []string, container string) (string, string, error) + func GetNodeAgentAverageCPUUsage(start, end time.Time) (map[string]float64, error) + func IncreaseNodeAgentSniffingTime(newDuration string) + func PlotNodeAgentPrometheusCPUUsage(testcase string, startTime, endTime time.Time) error + func PrintNodeAgentLogs(t *testing.T) + func RunCommand(name string, args ...string) int + type Alert struct + Labels map[string]string + func GetAlerts(namespace string) ([]Alert, error) + func GetMalwareAlerts(namespace string) ([]Alert, error) + type TestNamespace struct + Name string + func NewNamespace(name string) TestNamespace + func NewRandomNamespace() TestNamespace + type TestWorkload struct + Namespace string + UnstructuredObj *unstructured.Unstructured + WorkloadObj *workloadinterface.Workload + func CreateWorkloadsInPath(namespace, dir string) ([]TestWorkload, error) + func NewTestWorkload(namespace, resourcePath string) (*TestWorkload, error) + func (w *TestWorkload) ExecIntoPod(command []string, container string) (string, string, error) + func (w *TestWorkload) GetApplicationProfile() (*v1beta1.ApplicationProfile, error) + func (w *TestWorkload) GetNetworkNeighborhood() (*v1beta1.NetworkNeighborhood, error) + func (w *TestWorkload) GetPods() ([]v1.Pod, error) + func (w *TestWorkload) WaitForApplicationProfile(maxRetries uint64, expectedStatus string) error + func (w *TestWorkload) WaitForApplicationProfileCompletion(maxRetries uint64) error + func (w *TestWorkload) WaitForNetworkNeighborhood(maxRetries uint64, expectedStatus string) error + func (w *TestWorkload) WaitForNetworkNeighborhoodCompletion(maxRetries uint64) error + func (w *TestWorkload) WaitForReady(maxRetries uint64) error + type WorkloadMetrics struct + Name string + Timestamps []float64 + Values []float64 + func PlotNodeAgentPrometheusMemoryUsage(testcase string, startTime, endTime time.Time) ([]WorkloadMetrics, error)