From 430d07ec79cf7da50ec09a179b900d0f6b1a29dc Mon Sep 17 00:00:00 2001 From: c3y1huang Date: Mon, 9 Dec 2024 07:29:48 +0000 Subject: [PATCH] Update testing docs Signed-off-by: c3y1huang --- integration/common.html | 7 +++++++ integration/test_metric.html | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/integration/common.html b/integration/common.html index b8045a005..db76dccde 100644 --- a/integration/common.html +++ b/integration/common.html @@ -1338,6 +1338,12 @@

Returns

+
+def remount_volume_read_only(client, core_api, volume_name) +
+
+
+
def reset_disks_for_all_nodes(client)
@@ -2677,6 +2683,7 @@

Methods

  • read_pod_block_volume_data
  • read_volume_data
  • recurring_job_feature_supported
  • +
  • remount_volume_read_only
  • reset_disks_for_all_nodes
  • reset_engine_image
  • reset_longhorn_node_zone
  • diff --git a/integration/test_metric.html b/integration/test_metric.html index e6d887d08..cf0121e4d 100644 --- a/integration/test_metric.html +++ b/integration/test_metric.html @@ -149,7 +149,7 @@

    Functions

    Issue: https://github.com/longhorn/longhorn/issues/8508

    Given a volume is created and attached to a pod And the volume is healthy

    -

    When crash the volume engine process +

    When mount the volume as read-only And wait for the volume to become healthy And write the data to the pod And flush data to persistent storage in the pod with sync command

    @@ -174,7 +174,7 @@

    Functions

    prometheus_client to validate the return value.

    -def wait_for_metric(core_api, metric_name, metric_labels, expected_value) +def wait_for_metric(core_api, metric_name, metric_labels, expected_value, metric_node_id=None)