Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NotStatus (0.22 sec)

  1. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    	}
    	cycleState := framework.NewCycleState()
    	gotStatus := p.(framework.FilterPlugin).Filter(ctx, cycleState, pod, nodeInfo)
    	wantStatus := framework.AsStatus(fmt.Errorf(`reading "PreFilterNodePorts" from cycleState: %w`, framework.ErrNotFound))
    	if !reflect.DeepEqual(gotStatus, wantStatus) {
    		t.Errorf("status does not match: %v, want: %v", gotStatus, wantStatus)
    	}
    }
    
    func TestGetContainerPorts(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go

    			}
    			// If PreFilter fails, then Filter will not run.
    			if test.preFilterWantStatus.IsSuccess() {
    				gotStatus := p.(framework.FilterPlugin).Filter(ctx, cycleState, test.pod, test.nodeInfo)
    				if diff := cmp.Diff(test.wantStatus, gotStatus); diff != "" {
    					t.Errorf("Unexpected Filter status (-want, +got): %s", diff)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    				t.Errorf("PreFilter status does not match (-want, +got): %s", diff)
    			}
    
    			if gotPreFilterStatus.Code() != framework.Skip {
    				gotStatus := p.Filter(ctx, nil, test.newPod, node)
    				if !reflect.DeepEqual(gotStatus, test.wantStatus) {
    					t.Errorf("Filter status does not match: %v, want: %v", gotStatus, test.wantStatus)
    				}
    			}
    		})
    	}
    }
    
    func TestAzureDiskLimits(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    				t.Fatalf("Creating plugin: %v", err)
    			}
    
    			state := framework.NewCycleState()
    			var gotStatus *framework.Status
    			if test.runPreFilter {
    				gotPreFilterResult, gotStatus := p.(framework.PreFilterPlugin).PreFilter(context.Background(), state, test.pod)
    				if diff := cmp.Diff(test.wantPreFilterStatus, gotStatus); diff != "" {
    					t.Errorf("unexpected PreFilter Status (-want,+got):\n%s", diff)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    			p, err := New(ctx, nil, nil, feature.Features{})
    			if err != nil {
    				t.Fatalf("creating plugin: %v", err)
    			}
    			gotStatus := p.(framework.FilterPlugin).Filter(ctx, nil, test.pod, nodeInfo)
    			if !reflect.DeepEqual(gotStatus, test.wantStatus) {
    				t.Errorf("status does not match: %v, want: %v", gotStatus, test.wantStatus)
    			}
    		})
    	}
    }
    
    func TestIsSchedulableAfterNodeChange(t *testing.T) {
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    				t.Errorf("PreFilter status does not match (-want, +got): %s", diff)
    			}
    			if gotPreFilterStatus.Code() != framework.Skip {
    				gotStatus := p.Filter(ctx, nil, test.newPod, node)
    				if !reflect.DeepEqual(gotStatus, test.wantStatus) {
    					t.Errorf("Filter status does not match: %v, want: %v", gotStatus, test.wantStatus)
    				}
    			}
    		})
    	}
    }
    
    func TestCSILimitsQHint(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    			}
    
    			t.Logf("Verify: call Filter and check status")
    			for i, nodeInfo := range nodeInfos {
    				gotStatus := p.Filter(ctx, state, item.pod, nodeInfo)
    				assert.Equal(t, item.wantFilterStatus[i], gotStatus)
    			}
    
    			t.Logf("Verify: call PreScore and check status")
    			gotPreScoreStatus := p.PreScore(ctx, state, item.pod, tf.BuildNodeInfos(item.nodes))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
Back to top