You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestSyncScheduleInfoToCacheNodes in pkg/ddc/alluxio/node_test.go
What comments do you want to add?
// TestSyncScheduleInfoToCacheNodes tests the behavior of the SyncScheduleInfoToCacheNodes method
// for AlluxioEngine, ensuring it correctly labels Kubernetes nodes based on pod scheduling.
//
// This test covers multiple scenarios:
// - "create": Ensures labels are added to nodes where pods are scheduled.
// - "add": Verifies label addition when new pods/nodes are involved.
// - "noController": Checks behavior when pods lack a controller reference (should not label).
// - "deprecated": Tests legacy deployment via DaemonSet and ensures no labels are added.
//
// The test sets up a fake Kubernetes client populated with a combination of StatefulSets,
// DaemonSets, Pods, and Nodes for each test case. It invokes SyncScheduleInfoToCacheNodes()
// and validates that node labels are correctly synchronized with expected node names.
// Discrepancies between expected and actual labeled nodes trigger test failures.
The text was updated successfully, but these errors were encountered:
Which function do you want to add comments to?
TestSyncScheduleInfoToCacheNodes in pkg/ddc/alluxio/node_test.go
What comments do you want to add?
The text was updated successfully, but these errors were encountered: