Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/ddc/alluxio/transform_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ func TestTransformResourcesForMaster(t *testing.T) {
}
}

// mockAlluxioRuntimeForMaster creates a mock AlluxioRuntime object with the specified
// resource requirements for both the Master and JobMaster components.
//
// Parameters:
// - res: corev1.ResourceRequirements specifying the resource requirements for the components.
//
// Returns:
// - *datav1alpha1.AlluxioRuntime: A pointer to the created AlluxioRuntime object.
func mockAlluxioRuntimeForMaster(res corev1.ResourceRequirements) *datav1alpha1.AlluxioRuntime {
runtime := &datav1alpha1.AlluxioRuntime{
Spec: datav1alpha1.AlluxioRuntimeSpec{
Expand Down
Loading