Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectPath (0.44 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. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/M2ResourcePatternTest.groovy

            def artifact = artifact(group, module, version)
    
            expect:
            pattern.getLocation(artifact).path == expectPath
    
            where:
            group       | module     | version | expectPath
            "group"     | "projectA" | "1.2"   | 'prefix/group/projectA/1.2/ivys/1.2/ivy.xml'
            "org.group" | "projectA" | "1.2"   | 'prefix/org/group/projectA/1.2/ivys/1.2/ivy.xml'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6K 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. pkg/registry/core/pod/strategy_test.go

    		fieldSelector fields.Selector
    		expectMatch   bool
    	}{
    		{
    			in: &api.Pod{
    				Spec: api.PodSpec{NodeName: "nodeA"},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"),
    			expectMatch:   true,
    		},
    		{
    			in: &api.Pod{
    				Spec: api.PodSpec{NodeName: "nodeB"},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"),
    			expectMatch:   false,
    		},
    		{
    			in: &api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top