Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expectPath (0.2 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/controller_test.go

    	env.pollForPathExists("/apis/stable.example.com/v1/coolfoos")
    	env.pollForPathExists("/apis/stable.example.com/v1/coolbars")
    	s := env.fetchOpenAPIOrDie()
    	env.expectPath(s, "/apis/stable.example.com/v1/coolfoos")
    	env.expectPath(s, "/apis/stable.example.com/v1/coolbars")
    	env.expectPath(s, "/apis/apiextensions.k8s.io/v1")
    }
    
    func TestCRDMultiVersion(t *testing.T) {
    	env, ctx := setup(t)
    	env.runFunc()
    	defer env.cleanFunc()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 22 17:10:53 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    		HTTPClient      *http.Client
    		HttpErr         error
    		Overwrite       bool
    		Object          runtime.Object
    		Namespace       string
    		NamespaceScoped bool
    		Subresource     string
    
    		ExpectPath   string
    		ExpectObject runtime.Object
    		Err          bool
    		Req          func(string, *http.Request) bool
    	}{
    		{
    			Name:            "test1",
    			Namespace:       "bar",
    			NamespaceScoped: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/taint_eviction_test.go

    				podDeleted = true
    			}
    		}
    		return podPatched == expectPatch && podDeleted == expectDelete, nil
    	})
    	if err != nil {
    		t.Errorf("Failed waiting for the expected actions: %q", err)
    	}
    	if podPatched != expectPatch {
    		t.Errorf("[%v]Unexpected test result. Expected patch %v, got %v", description, expectPatch, podPatched)
    	}
    	if podDeleted != expectDelete {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  4. pkg/registry/core/service/strategy_test.go

    		fieldSelector fields.Selector
    		expectMatch   bool
    	}{
    		{
    			name: "match on name",
    			in: &api.Service{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "test",
    					Namespace: "testns",
    				},
    				Spec: api.ServiceSpec{ClusterIP: api.ClusterIPNone},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("metadata.name=test"),
    			expectMatch:   true,
    		},
    		{
    			name: "match on namespace",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    		},
    		{
    			name:        "Nil",
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if result := IsRequestEntityTooLargeError(tc.err); result != tc.expectMatch {
    			t.Errorf("Expect match %t, got match %t", tc.expectMatch, result)
    		}
    	}
    }
    
    func TestIsUnexpectedServerError(t *testing.T) {
    	unexpectedServerErr := func() error {
    		return &StatusError{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    		})
    	}
    }
    
    func checkFTR(t *testing.T, ftr *fsTestingRecord) {
    	for expectMatch, digests1 := range ftr.digests {
    		if testDebugLogs {
    			t.Logf("%s.digests[%v] = %#+v", ftr.fs.Name, expectMatch, digests1)
    		}
    		for _, digests2 := range digests1 {
    			for _, digest := range digests2 {
    				actualMatch := matchesFlowSchema(digest, ftr.fs)
    				if expectMatch != actualMatch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    	testcases := []struct {
    		name     string
    		uid      types.UID
    		mutating bool
    		review   runtime.Object
    
    		expectAuditAnnotations map[string]string
    		expectAllowed          bool
    		expectPatch            []byte
    		expectPatchType        admissionv1.PatchType
    		expectResult           *metav1.Status
    		expectErr              string
    	}{
    		// Allowed validating
    		{
    			name: "v1beta1 allowed validating",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. pkg/auth/authorizer/abac/abac_test.go

    		User        user.DefaultInfo
    		Policy      runtime.Object
    		ExpectMatch bool
    	}{
    		"v0 empty policy does not match unauthed user": {
    			User: user.DefaultInfo{Name: "system:anonymous", Groups: []string{"system:unauthenticated"}},
    			Policy: &v0.Policy{
    				User:  "",
    				Group: "",
    			},
    			ExpectMatch: false,
    		},
    		"v0 * user policy does not match unauthed user": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go

    	if !Everything().Empty() {
    		t.Errorf("Everything was not empty")
    	}
    }
    
    func TestSelectorMatches(t *testing.T) {
    	expectMatch(t, "", Set{"x": "y"})
    	expectMatch(t, "x=y", Set{"x": "y"})
    	expectMatch(t, "x=y,z=w", Set{"x": "y", "z": "w"})
    	expectMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "a"})
    	expectMatch(t, "notin=in", Set{"notin": "in"}) // in and notin in exactMatch
    	expectNoMatch(t, "x=y", Set{"x": "z"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 08:00:38 UTC 2017
    - 11.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    }
    
    func TestSelectorMatches(t *testing.T) {
    	expectMatch(t, "", Set{"x": "y"})
    	expectMatch(t, "x=y", Set{"x": "y"})
    	expectMatch(t, "x=y,z=w", Set{"x": "y", "z": "w"})
    	expectMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "a"})
    	expectMatch(t, "notin=in", Set{"notin": "in"}) // in and notin in exactMatch
    	expectMatch(t, "x", Set{"x": "z"})
    	expectMatch(t, "!x", Set{"y": "z"})
    	expectMatch(t, "x>1", Set{"x": "2"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
Back to top