Module tests.test_infra
Functions
def detect_cloudprovider()
def is_infra_k3s()
def is_node_ready_k8s(node_name, k8s_api_client)
def is_node_ready_longhorn(node_name, longhorn_api_client)
def reset_cluster_ready_status(request)
def test_offline_node(reset_cluster_ready_status)
-
Test offline node
- Bring down one of the nodes in Kubernetes cluster (avoid current node)
- Make sure the Longhorn node state become
down
def wait_for_node_down_aws(cloudprovider, node)
def wait_for_node_down_k8s(node_name, k8s_api_client)
def wait_for_node_down_longhorn(node_name, longhorn_api_client)
def wait_for_node_up_aws(cloudprovider, node)
def wait_for_node_up_k8s(node_name, k8s_api_client)
def wait_for_node_up_longhorn(node_name, longhorn_api_client)