Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestStatus (0.18 sec)

  1. plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/validation_test.go

    		},
    		testName:   "Invalid case",
    		testStatus: false,
    	}}
    
    	for i := range tests {
    		errs := ValidateConfiguration(&tests[i].config)
    		if tests[i].testStatus && errs != nil {
    			t.Errorf("Test: %s, expected success: %v", tests[i].testName, errs)
    		}
    		if !tests[i].testStatus && errs == nil {
    			t.Errorf("Test: %s, expected errors: %v", tests[i].testName, errs)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/instrumented_services_test.go

    	irs := newInstrumentedRuntimeService(fakeRuntime)
    	vr, err := irs.Version(ctx, "1")
    	assert.NoError(t, err)
    	assert.Equal(t, kubeRuntimeAPIVersion, vr.Version)
    }
    
    func TestStatus(t *testing.T) {
    	ctx := context.Background()
    	fakeRuntime, _, _, _ := createTestRuntimeManager()
    	fakeRuntime.FakeStatus = &runtimeapi.RuntimeStatus{
    		Conditions: []*runtimeapi.RuntimeCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/interface_test.go

    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    var errorStatus = NewStatus(Error, "internal error")
    var statusWithErr = AsStatus(errors.New("internal error"))
    
    func TestStatus(t *testing.T) {
    	tests := []struct {
    		name              string
    		status            *Status
    		expectedCode      Code
    		expectedMessage   string
    		expectedIsSuccess bool
    		expectedIsWait    bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top