Documentation ¶
Index ¶
- 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
- type TestNamespace
- type TestWorkload
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertNotContains ¶
func ExecIntoPod ¶
func IncreaseNodeAgentSniffingTime ¶
func IncreaseNodeAgentSniffingTime(newDuration string)
func PrintNodeAgentLogs ¶
func RunCommand ¶
Types ¶
type Alert ¶
Alert structure based on the expected JSON format from Alertmanager
func GetMalwareAlerts ¶
type TestNamespace ¶
type TestNamespace struct { Name string // contains filtered or unexported fields }
func NewNamespace ¶
func NewNamespace(name string) TestNamespace
func NewRandomNamespace ¶
func NewRandomNamespace() TestNamespace
type TestWorkload ¶
type TestWorkload struct { Namespace string UnstructuredObj *unstructured.Unstructured WorkloadObj *workloadinterface.Workload // contains filtered or unexported fields }
func CreateWorkloadsInPath ¶
func CreateWorkloadsInPath(namespace, dir string) ([]TestWorkload, error)
func NewTestWorkload ¶
func NewTestWorkload(namespace, resourcePath string) (*TestWorkload, error)
func (*TestWorkload) ExecIntoPod ¶
func (*TestWorkload) GetApplicationProfile ¶
func (w *TestWorkload) GetApplicationProfile() (*v1beta1.ApplicationProfile, error)
func (*TestWorkload) GetNetworkNeighborhood ¶
func (w *TestWorkload) GetNetworkNeighborhood() (*v1beta1.NetworkNeighborhood, error)
func (*TestWorkload) WaitForApplicationProfile ¶
func (w *TestWorkload) WaitForApplicationProfile(maxRetries uint64, expectedStatus string) error
func (*TestWorkload) WaitForApplicationProfileCompletion ¶
func (w *TestWorkload) WaitForApplicationProfileCompletion(maxRetries uint64) error
func (*TestWorkload) WaitForNetworkNeighborhood ¶
func (w *TestWorkload) WaitForNetworkNeighborhood(maxRetries uint64, expectedStatus string) error
func (*TestWorkload) WaitForNetworkNeighborhoodCompletion ¶
func (w *TestWorkload) WaitForNetworkNeighborhoodCompletion(maxRetries uint64) error
func (*TestWorkload) WaitForReady ¶
func (w *TestWorkload) WaitForReady(maxRetries uint64) error
type WorkloadMetrics ¶
func PlotNodeAgentPrometheusMemoryUsage ¶
func PlotNodeAgentPrometheusMemoryUsage(testcase string, startTime, endTime time.Time) ([]WorkloadMetrics, error)
Click to show internal directories.
Click to hide internal directories.