Skip to content

Commit f52d3f7

Browse files
author
windows
committed
Add comments/notation to TestTransformShortCircuit in pkg\ddc\alluxio\transform_test.go.
Signed-off-by: windows <1525454094@qq.com>
1 parent 79e0948 commit f52d3f7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

pkg/ddc/alluxio/transform_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,16 @@ func TestGenerateStaticPorts(t *testing.T) {
360360
t.Errorf("Expect the value %v, but got %v", expect, gotValue)
361361
}
362362
}
363-
363+
// TestTransformShortCircuit tests the transformation of short-circuit configuration in AlluxioEngine.
364+
// It verifies the behavior with different tiered storage configurations (emptyDir vs non-emptyDir volumes),
365+
// ensuring the correct short-circuit policy, enablement status, and property values are set.
366+
// The test cases cover:
367+
// - When emptyDir volume type is present in tiers (short-circuit disabled)
368+
// - When emptyDir volume type is absent (short-circuit enabled)
369+
// Each test validates:
370+
// - The resulting ShortCircuitPolicy
371+
// - The ShortCircuit struct values
372+
// - The Alluxio properties when applicable
364373
func TestTransformShortCircuit(t *testing.T) {
365374
engine := &AlluxioEngine{Log: fake.NullLogger()}
366375

0 commit comments

Comments
 (0)