Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 372 for expectGet (0.62 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    		config   string
    		webhook  string
    		mutated  bool
    		expected string
    	}{
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  true,
    			expected: `{"configuration":"test-config","webhook":"test-webhook","mutated":true}`,
    		},
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  false,
    			expected: `{"configuration":"test-config","webhook":"test-webhook","mutated":false}`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/test/kubeconfig/util.go

    		t.Errorf("kubeconfig.currentCluster.CertificateAuthorityData not correspond to the expected CA cert")
    	}
    }
    
    // AssertKubeConfigCurrentAuthInfoWithClientCert is a utility function for kubeadm testing that asserts if the CurrentAuthInfo in
    // the given KubeConfig object contains a clientCert that refers to a specific client name, is signed by the expected CA, includes the expected organizations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiKotlinDslIntegrationTest.groovy

        static void checkKotlinDslScriptsModel(actual, expected) {
            assert expected instanceof KotlinDslScriptsModel
            assert actual instanceof KotlinDslScriptsModel
    
            checkModel(actual, expected, [
                [{ it.scriptModels }, { a, e -> checkKotlinDslScriptModel(a, e) }]
            ])
        }
    
        static void checkKotlinDslScriptModel(actual, expected) {
            assert expected instanceof KotlinDslScriptModel
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/DefaultTestFailureDetails.java

                return false;
            }
            if (stacktrace != null ? !stacktrace.equals(that.stacktrace) : that.stacktrace != null) {
                return false;
            }
            if (expected != null ? !expected.equals(that.expected) : that.expected != null) {
                return false;
            }
            if (actual != null ? !actual.equals(that.actual) : that.actual != null) {
                return false;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. pkg/util/tail/tail_test.go

    		name          string
    		max           int64
    		longerThanMax bool
    		expected      string
    	}{
    		{
    			name:          "the max is negative",
    			max:           -1,
    			longerThanMax: true,
    			expected:      "",
    		},
    		{
    			name:          "the max is zero",
    			max:           0,
    			longerThanMax: true,
    			expected:      "",
    		},
    		{
    			name:          "the file length is longer than max",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    	wrapped.ServeHTTP(w, testRequest)
    
    	if callCount != 1 {
    		t.Errorf("expected the given handler to be invoked once, but was actually invoked %d times", callCount)
    	}
    	if filterRecord == nil {
    		t.Fatal("expected a filter record in the request context, but got nil")
    	}
    	if filterName != filterRecord.name {
    		t.Errorf("expected filter name=%s but got=%s", filterName, filterRecord.name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/net_test.go

    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    			t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
    		case testCase.expectedErr.Error() != err.Error():
    			t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err)
    		}
    
    		if testCase.expectedIPList != nil {
    			var found bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/net/lookup_windows_test.go

    	}
    	if len(names) == 0 {
    		t.Errorf("no results")
    	}
    	expected, err := lookupPTR(addr.String())
    	if err != nil {
    		t.Skipf("skipping failed lookup %s test: %s", addr.String(), err)
    	}
    	slices.Sort(expected)
    	slices.Sort(names)
    	if !reflect.DeepEqual(expected, names) {
    		t.Errorf("different results %s:\texp:%v\tgot:%v", addr, toJson(expected), toJson(names))
    	}
    }
    
    func TestLookupPTR(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pilot/pkg/xds/pushqueue_test.go

    	}()
    	select {
    	case <-done:
    		t.Fatalf("Expected timeout")
    	case <-time.After(time.Millisecond * 500):
    	}
    }
    
    func ExpectDequeue(t *testing.T, p *PushQueue, expected *Connection) {
    	t.Helper()
    	result := make(chan *Connection, 1)
    	go func() {
    		con, _, _ := p.Dequeue()
    		result <- con
    	}()
    	select {
    	case got := <-result:
    		if got != expected {
    			t.Fatalf("Expected proxy %v, got %v", expected, got)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. pkg/api/persistentvolume/util_test.go

    		template *api.PersistentVolume
    		expected []string
    	}{
    		{
    			name:     "null",
    			template: nil,
    			expected: nil,
    		},
    		{
    			name: "no warning",
    			template: &api.PersistentVolume{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "foo",
    				},
    				Status: api.PersistentVolumeStatus{
    					Phase: api.VolumeBound,
    				},
    			},
    			expected: nil,
    		},
    		{
    			name: "warning",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top