Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 185 for expectGet (0.43 sec)

  1. pkg/apis/core/v1/defaults_test.go

    	}
    
    	assertImagePullPolicy := func(got, expected *v1.Container) error {
    		if got.ImagePullPolicy != expected.ImagePullPolicy {
    			return fmt.Errorf("different image pull policy: got <%v>, expected <%v>", got.ImagePullPolicy, expected.ImagePullPolicy)
    		}
    		return nil
    	}
    
    	assertContainerPort := func(got, expected *v1.Container) error {
    		if len(got.Ports) != len(expected.Ports) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			t.Errorf("expected %v, got %v", e, a)
    		}
    	}
    }
    
    // TestQuantityParseZero ensures that when a 0 quantity is passed, its string value is 0
    func TestQuantityParseZero(t *testing.T) {
    	zero := MustParse("0")
    	if expected, actual := "0", zero.String(); expected != actual {
    		t.Errorf("Expected %v, actual %v", expected, actual)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testGetOnlyElement_noDefault_moreThanOneLessThanFiveElements() {
        Iterator<String> iterator = asList("one", "two").iterator();
        try {
          Iterators.getOnlyElement(iterator);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    		}
    		// Failed as expected, but does it fail for the expected reason.
    		if actualErr != nil && !testCase.shouldPass {
    			if testCase.expectedError.Error() != actualErr.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead.", i+1, instanceType, testCase.expectedError.Error(), actualErr.Error())
    			}
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener_test.go

    		if expected := 1; len(listeners) != expected {
    			t.Fatalf("expected %d listeners, found %d", expected, len(listeners))
    		}
    		l := findListenerByPort(listeners, 15080)
    		if l == nil {
    			t.Fatalf("expected listener on port %d, but not found", 15080)
    		}
    		if len(l.FilterChains) != 1 {
    			t.Fatalf("expected %d filter chains, found %d", 1, len(l.FilterChains))
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  6. pilot/pkg/model/virtualservice_test.go

    			leaf: &networking.HTTPMatchRequest{
    				Gateways: []string{"ingress-gateway", "mesh"},
    			},
    			expected: true,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := hasConflict(tc.root, tc.leaf)
    			if got != tc.expected {
    				t.Errorf("got %v, expected %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  7. pilot/pkg/model/telemetry_logging_test.go

    	cases := []struct {
    		name         string
    		formatString string
    		expected     string
    	}{
    		{
    			name:     "empty",
    			expected: EnvoyTextLogFormat,
    		},
    		{
    			name:         "contains newline",
    			formatString: "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    			expected:     "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% \n",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. pkg/controller/replicaset/replica_set_test.go

    	manager.updatePod(logger, &pod1, &pod2)
    	expected := sets.NewString(testRSSpec1.Name)
    	for _, name := range expected.List() {
    		t.Logf("Expecting update for %+v", name)
    		select {
    		case got := <-received:
    			if !expected.Has(got) {
    				t.Errorf("Expected keys %#v got %v", expected, got)
    			}
    		case <-time.After(wait.ForeverTestTimeout):
    			t.Errorf("Expected update notifications for replica sets")
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

          sink.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream finished")
        }
        assertFailsWith<IOException> {
          stream.getSource().read(Buffer(), 1)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream was reset: CANCEL")
        }
    
        // Verify the peer received what was expected.
        val synStream = peer.takeFrame()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  10. pkg/kubelet/pod_workers_test.go

    		return &i
    	}
    	expectPodSyncStatus := func(t *testing.T, expected, status *podSyncStatus) {
    		t.Helper()
    		// handle special non-comparable fields
    		if status != nil {
    			if e, a := expected.ctx != nil, status.ctx != nil; e != a {
    				t.Errorf("expected context %t, has context %t", e, a)
    			} else {
    				expected.ctx, status.ctx = nil, nil
    			}
    			if e, a := expected.cancelFn != nil, status.cancelFn != nil; e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
Back to top