Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions pkg/ddc/alluxio/operations/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ func TestAlluxioFIleUtils_ReportMetrics(t *testing.T) {
}
}

// TestAlluxioFIleUtils_ReportCapacity tests the ReportCapacity method of AlluxioFileUtils.
// This test verifies both the error handling when the underlying command execution fails
// and the successful path when the command returns valid cluster capacity information.
func TestAlluxioFIleUtils_ReportCapacity(t *testing.T) {
ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) {
return "report [category] [category args]\nReport Alluxio running cluster information.\n", "", nil
Expand Down
1 change: 1 addition & 0 deletions pkg/ddc/alluxio/types_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type NodeAffinity struct {
// +optional
RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution"`
}

// translateCacheToNodeAffinity converts a CacheableNodeAffinity into an Alluxio NodeAffinity.
// It returns nil when the input affinity or its required scheduling rule is not specified.
// For each required node selector term, it copies the match expressions into the Alluxio
Expand Down
Loading