Skip to content

Commit ad54842

Browse files
authored
Add Notation to TestGetMasterStatefulset in pkg/ddc/alluxio/utils_test.go. (#4584)
Signed-off-by: ZRW <1357493406@qq.com>
1 parent 4ff3cb9 commit ad54842

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

pkg/ddc/alluxio/utils_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,17 @@ func TestGetMasterPod(t *testing.T) {
474474
}
475475
}
476476

477+
// TestGetMasterStatefulset tests the getMasterStatefulset method of the AlluxioEngine struct.
478+
// It verifies that the method correctly retrieves the expected StatefulSet based on the provided
479+
// AlluxioRuntime, name, and namespace. The test includes a sample runtime and expected
480+
// StatefulSet, checking for both successful retrieval and error scenarios.
481+
//
482+
// Parameters:
483+
// - t: The test framework's context, which provides methods for logging and error reporting.
484+
//
485+
// Returns:
486+
// - The test does not return any value, but it reports errors using the t.Error and
487+
// t.Errorf methods to indicate whether the test passed or failed.
477488
func TestGetMasterStatefulset(t *testing.T) {
478489
type fields struct {
479490
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)