Record overall Filter latency for all nodes in a scheduling cycle.
This commit is contained in:
@@ -865,30 +865,6 @@ func TestRecordingMetrics(t *testing.T) {
|
||||
wantExtensionPoint: "PreFilter",
|
||||
wantStatus: Success,
|
||||
},
|
||||
{
|
||||
name: "PreFilterAddPod - Success",
|
||||
action: func(f Framework) { f.RunPreFilterExtensionAddPod(context.Background(), state, pod, nil, nil) },
|
||||
wantExtensionPoint: "PreFilterExtensionAddPod",
|
||||
wantStatus: Success,
|
||||
},
|
||||
{
|
||||
name: "PreFilterRemovePod - Success",
|
||||
action: func(f Framework) { f.RunPreFilterExtensionRemovePod(context.Background(), state, pod, nil, nil) },
|
||||
wantExtensionPoint: "PreFilterExtensionRemovePod",
|
||||
wantStatus: Success,
|
||||
},
|
||||
{
|
||||
name: "PreFilterRemovePod - Success",
|
||||
action: func(f Framework) { f.RunPreFilterPlugins(context.Background(), state, pod) },
|
||||
wantExtensionPoint: "PreFilter",
|
||||
wantStatus: Success,
|
||||
},
|
||||
{
|
||||
name: "Filter - Success",
|
||||
action: func(f Framework) { f.RunFilterPlugins(context.Background(), state, pod, nil) },
|
||||
wantExtensionPoint: "Filter",
|
||||
wantStatus: Success,
|
||||
},
|
||||
{
|
||||
name: "PostFilter - Success",
|
||||
action: func(f Framework) { f.RunPostFilterPlugins(context.Background(), state, pod, nil, nil) },
|
||||
@@ -945,27 +921,6 @@ func TestRecordingMetrics(t *testing.T) {
|
||||
wantExtensionPoint: "PreFilter",
|
||||
wantStatus: Error,
|
||||
},
|
||||
{
|
||||
name: "PreFilterAddPod - Error",
|
||||
action: func(f Framework) { f.RunPreFilterExtensionAddPod(context.Background(), state, pod, nil, nil) },
|
||||
inject: injectedResult{PreFilterAddPodStatus: int(Error)},
|
||||
wantExtensionPoint: "PreFilterExtensionAddPod",
|
||||
wantStatus: Error,
|
||||
},
|
||||
{
|
||||
name: "PreFilterRemovePod - Error",
|
||||
action: func(f Framework) { f.RunPreFilterExtensionRemovePod(context.Background(), state, pod, nil, nil) },
|
||||
inject: injectedResult{PreFilterRemovePodStatus: int(Error)},
|
||||
wantExtensionPoint: "PreFilterExtensionRemovePod",
|
||||
wantStatus: Error,
|
||||
},
|
||||
{
|
||||
name: "Filter - Error",
|
||||
action: func(f Framework) { f.RunFilterPlugins(context.Background(), state, pod, nil) },
|
||||
inject: injectedResult{FilterStatus: int(Error)},
|
||||
wantExtensionPoint: "Filter",
|
||||
wantStatus: Error,
|
||||
},
|
||||
{
|
||||
name: "PostFilter - Error",
|
||||
action: func(f Framework) { f.RunPostFilterPlugins(context.Background(), state, pod, nil, nil) },
|
||||
|
||||
Reference in New Issue
Block a user