Skip to content

Commit 0fde82b

Browse files
JefferyChu001JefferyChu
andauthored
This PR is to add comments to TestGetFuseDaemonsetName in pkg\ddc\alluxio\utils_test.go. (#4647)
* Add Notation to TestGetFuseDaemonsetName in pkg/ddc/alluxio/utils_test.go. Signed-off-by: JefferyChu <[email protected]> * Add Notation to TestGetFuseDaemonsetName in pkg\ddc\alluxio\utils_test.go. Signed-off-by: JefferyChu <[email protected]> * Add Notation to TestGetFuseDaemonsetName in pkg\ddc\alluxio\utils_test.go. Signed-off-by: JefferyChu <[email protected]> * Add Notation to TestGetFuseDaemonsetName in pkg\ddc\alluxio\utils_test.go. Signed-off-by: JefferyChu <[email protected]> --------- Signed-off-by: JefferyChu <[email protected]> Co-authored-by: JefferyChu <[email protected]>
1 parent 7d914d2 commit 0fde82b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/ddc/alluxio/utils_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,16 @@ func TestGetWorkerDaemonsetName(t *testing.T) {
719719
}
720720
}
721721

722+
// TestGetFuseDaemonsetName is a unit test for the getFuseName method of the AlluxioEngine struct.
723+
// This test verifies that the method correctly constructs the expected daemonset name
724+
// based on the given engine name.
725+
// The test defines a struct `fields` containing the engine name and a test case struct
726+
// that includes the test case name, input fields, and the expected daemonset name.
727+
// The test case used:
728+
// - When the engine name is "spark", the expected daemonset name should be "spark-fuse".
729+
// The test iterates through all defined cases, creates an instance of AlluxioEngine with
730+
// the given name, calls the `getFuseName` method, and checks if the returned result matches
731+
// the expected value. If the result differs, an error message is reported.
722732
func TestGetFuseDaemonsetName(t *testing.T) {
723733
type fields struct {
724734
name string

0 commit comments

Comments
 (0)