File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
477488func TestGetMasterStatefulset (t * testing.T ) {
478489 type fields struct {
479490 runtime * datav1alpha1.AlluxioRuntime
You can’t perform that action at this time.
0 commit comments