From b7cf08146433a83a7d5b298a9b21cef6b6b10dd2 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Wed, 1 Nov 2023 14:20:00 +0800 Subject: [PATCH] test(negative): stress volume node memory when volume is online expanding ref: 6982 Signed-off-by: Chin-Ya Huang --- e2e/tests/stress_memory.robot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/e2e/tests/stress_memory.robot b/e2e/tests/stress_memory.robot index 0568b6f872..11acba51dc 100644 --- a/e2e/tests/stress_memory.robot +++ b/e2e/tests/stress_memory.robot @@ -2,6 +2,7 @@ Documentation Negative Test Cases Resource ../keywords/node.resource Resource ../keywords/volume.resource +Resource ../keywords/workload.resource Resource ../keywords/common.resource Test Setup Set test environment @@ -38,3 +39,18 @@ Stress Volume Node Memory When Volume Is Detaching and Attaching And Check data is intact END + +Stress Volume Node Memory When Volume Is Online Expanding + @{data_checksum_list} = Create List + Set Test Variable ${data_checksum_list} + + Given Create statefulset 0 with rwo volume + And Write 1024 MB data to statefulset 0 + + FOR ${i} IN RANGE ${LOOP_COUNT} + And Stress the memory of all volume nodes + When Expand statefulset 0 volume by 100 MiB + + Then Wait for statefulset 0 volume size expanded + And Check statefulset 0 data is intact + END