Documentation ¶
Overview ¶
Package test is using for HuaWei Ascend testing.
Package test is using for HuaWei Ascend testing.
Package test is using for HuaWei Ascend testing.
Index ¶
- func FakeSchedulerJobAttrByJob(job *api.JobInfo) util.SchedulerJobAttr
- func PatchAddJob() *gomonkey.Patches
- func PatchAddNode() *gomonkey.Patches
- func PatchForce() *gomonkey.Patches
- func PatchGetRun() *gomonkey.Patches
- func PatchNew() *gomonkey.Patches
- func PatchNewComRes() *gomonkey.Patches
- func PatchRestart() *gomonkey.Patches
- func PatchSynJob() *gomonkey.Patches
- func PatchSynNode() *gomonkey.Patches
- type CheckNodeNPUByTaskTestCase
- type InitMyJobPluginTestCase
- type JudgeNodeAndTaskNPUTestCase
- type ReleaseAnnotationTestCase
- type ScoreBestNPUNodesTestCase
- type SetMaxNodeNPUNumTestCase
- type UseAnnotationTestCase
- type ValidNPUJobTestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeSchedulerJobAttrByJob ¶
func FakeSchedulerJobAttrByJob(job *api.JobInfo) util.SchedulerJobAttr
FakeSchedulerJobAttrByJob fake scheduler attr by job
Types ¶
type CheckNodeNPUByTaskTestCase ¶
type CheckNodeNPUByTaskTestCase struct { Task *api.TaskInfo Name string Attr util.SchedulerJobAttr Node plugin.NPUNode WantErr error }
CheckNodeNPUByTaskTestCase CheckNodeNPUByTask test case
type InitMyJobPluginTestCase ¶
type InitMyJobPluginTestCase struct { Name string Attr util.SchedulerJobAttr Env plugin.ScheduleEnv WantErr error }
InitMyJobPluginTestCase test case
type JudgeNodeAndTaskNPUTestCase ¶
JudgeNodeAndTaskNPUTestCase JudgeNodeAndTaskNPU test case
type ReleaseAnnotationTestCase ¶
type ReleaseAnnotationTestCase struct { Task *api.TaskInfo WantNode *plugin.NPUNode Name string Node plugin.NPUNode PodAnno string Attr util.SchedulerJobAttr }
ReleaseAnnotationTestCase releaseAnnotation test case
type ScoreBestNPUNodesTestCase ¶
type ScoreBestNPUNodesTestCase struct { Task *api.TaskInfo Nodes []*api.NodeInfo ScoreMap map[string]float64 WantSMap map[string]float64 Name string WantErr error Attr util.SchedulerJobAttr }
ScoreBestNPUNodesTestCase scoreBestNPUNodes test case
type SetMaxNodeNPUNumTestCase ¶
SetMaxNodeNPUNumTestCase SetMaxNodeNPUNum test case
type UseAnnotationTestCase ¶
type UseAnnotationTestCase struct { Task *api.TaskInfo WantNode *plugin.NPUNode Name string Node plugin.NPUNode PodAnno string Attr util.SchedulerJobAttr }
UseAnnotationTestCase useAnnotation test case
type ValidNPUJobTestCase ¶
type ValidNPUJobTestCase struct { WantErr *api.ValidateResult Name string Attr util.SchedulerJobAttr }
ValidNPUJobTestCase validNPUJob test case
Click to show internal directories.
Click to hide internal directories.