Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,123 for testCases (0.29 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go

    	"sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client"
    )
    
    type fakeEgressSelection struct {
    	directDialerCalled bool
    }
    
    func TestEgressSelector(t *testing.T) {
    	testcases := []struct {
    		name     string
    		input    *apiserver.EgressSelectorConfiguration
    		services []struct {
    			egressType     EgressType
    			validateDialer func(dialer utilnet.DialFunc, s *fakeEgressSelection) (bool, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 22:41:29 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go

    	testCases := []struct {
    		obj   runtime.Object
    		data  []byte
    		errFn func(error) bool
    	}{
    		{
    			obj:  obj1WithKind,
    			data: wire1,
    		},
    	}
    	scheme := runtime.NewScheme()
    	for i, test := range testCases {
    		scheme.AddKnownTypes(schema.GroupVersion{Version: "v1"}, &v1.Carp{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/addons/proxy/proxy_test.go

    				Image:             "foo",
    				ProxyConfigMap:    "foo",
    				ProxyConfigMapKey: "foo",
    			},
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			daemonSetBytes, _ := kubeadmutil.ParseTemplate(testCase.manifest, testCase.data)
    			daemonSet := &apps.DaemonSet{}
    			if err := runtime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), daemonSetBytes, daemonSet); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy

            def command = new ArrayList<>()
            command.add(testTaskName)
    
            desiredTestFilters.each { testClass, testCases ->
                testCases.collect { testCase ->
                    command.addAll(['--tests', testSuite(testClass) + "." + removeParentheses(testCase)])
                }
            }
            return command.toArray()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go

    	testCases := []struct {
    		Req *http.Request
    	}{
    		{Req: &http.Request{Header: http.Header{"Authorization": []string{"Bearer token a"}}}},
    		{Req: &http.Request{Header: http.Header{"Authorization": []string{"Bearer token a b c"}}}},
    		{Req: &http.Request{Header: http.Header{"Authorization": []string{"Bearer token   a"}}}},
    	}
    	for i, testCase := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 25 13:22:28 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/attributes_test.go

    	// test invalid plugin names
    	var testCases = map[string]string{
    		"invalid dns subdomain": "INVALID-DNS-Subdomain/policy",
    		"no plugin name":        "policy",
    		"no key name":           "foo.admission.k8s.io",
    		"empty key":             "",
    	}
    	for name, invalidKey := range testCases {
    		err := attr.AddAnnotation(invalidKey, "value-foo")
    		assert.Error(t, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 19:44:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. tests/integration/operator/install_test.go

    func TestInstallCommandInput(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(ctx framework.TestContext) {
    			istioCtl := istioctl.NewOrFail(ctx, ctx, istioctl.Config{})
    			testCases := []installTestCase{
    				{
    					command:   []string{"install", "--dry-run", "--revision", ""},
    					errString: InvalidRevision,
    				},
    				{
    					command:   []string{"install", "--dry-run", "--revision", "1.8.0"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 14:30:43 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. pilot/pkg/config/file/util/kubeyaml/kubeyaml_test.go

    			g := NewWithT(t)
    
    			actual := JoinString(c.split...)
    
    			g.Expect(actual).To(Equal(c.merged))
    		})
    	}
    }
    
    func TestLineNumber(t *testing.T) {
    	testCases := []struct {
    		input       string
    		lineNumbers []int
    	}{
    		{
    			input:       "foo: bar\n---\nfoo: baz",
    			lineNumbers: []int{1, 3},
    		},
    		{
    			input:       "\n\nfoo: bar\n---\n\n\nfoo: baz",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_utils_test.go

    			},
    			schema:      podKind,
    			shouldMatch: false,
    		},
    	}
    	for _, tc := range testCases {
    		got := matchesRef(&tc.ref, &tc.obj, tc.schema)
    		if got != tc.shouldMatch {
    			t.Errorf("Failed %s: got %t, expected %t", tc.name, got, tc.shouldMatch)
    		}
    	}
    }
    
    func TestIsClaimOwnerUpToDate(t *testing.T) {
    	testCases := []struct {
    		name            string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  10. plugin/pkg/admission/network/denyserviceexternalips/admission_test.go

    func makeSvc(externalIPs ...string) *core.Service {
    	svc := &core.Service{}
    	svc.Namespace = "test-ns"
    	svc.Name = "test-svc"
    	svc.Spec.ExternalIPs = externalIPs
    	return svc
    }
    
    func TestAdmission(t *testing.T) {
    	testCases := []struct {
    		name   string
    		newSvc *core.Service
    		oldSvc *core.Service
    		fail   bool
    	}{{
    		name:   "create: without externalIPs",
    		newSvc: makeSvc(),
    	}, {
    		name:   "create: with externalIPs",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 05:36:44 UTC 2021
    - 3K bytes
    - Viewed (0)
Back to top