...

Package networkchaos

import "github.com/chaos-mesh/chaos-mesh/test/e2e/chaos/networkchaos"
Overview
Index

Overview ▾

func TestcaseForbidHostNetwork

func TestcaseForbidHostNetwork(
    ns string,
    kubeCli kubernetes.Interface,
    cli client.Client,
)

TestcaseForbidHostNetwork We do NOT allow that inject chaos on a pod which uses hostNetwork

func TestcaseNetworkDelay

func TestcaseNetworkDelay(
    ns string,
    cli client.Client,
    networkPeers []*corev1.Pod,
    ports []uint16,
    c http.Client,
)

func TestcaseNetworkPartition

func TestcaseNetworkPartition(
    ns string,
    cli client.Client,
    networkPeers []*corev1.Pod,
    ports []uint16,
    c http.Client,
)

func TestcasePeersCrossover

func TestcasePeersCrossover(
    ns string,
    cli client.Client,
    networkPeers []*corev1.Pod,
    ports []uint16,
    c http.Client,
)

This test case is for https://github.com/chaos-mesh/chaos-mesh/issues/1450 For example, if the source is A, B, and the target is C, D, and the direction is both, now the connection between A and B will also be affected by this chaos, this is unexpected.