Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for expectPath (0.19 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. 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)
  4. 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)
  5. pkg/registry/core/componentstatus/validator_test.go

    		if test.expectErr && err == nil {
    			t.Error("unexpected non-error")
    		}
    		if !test.expectErr && err != nil {
    			t.Errorf("unexpected error: %v", err)
    		}
    		if data != test.expectData {
    			t.Errorf("expected %s, got %s", test.expectData, data)
    		}
    		if result != test.expectResult {
    			t.Errorf("expected %s, got %s", test.expectResult, result)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/api/core/v1/taint_test.go

    		taint        *Taint
    		taintToMatch Taint
    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    			taint: &Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			taintToMatch: Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			expectMatch: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  8. 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)
  9. pkg/apis/core/toleration_test.go

    				TolerationSeconds: &tolerationToMatchSeconds,
    			},
    			expectMatch: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		if actual := tc.toleration.MatchToleration(tc.tolerationToMatch); actual != tc.expectMatch {
    			t.Errorf("[%s] expect: %v , got:  %v", tc.description, tc.expectMatch, !tc.expectMatch)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 01:44:27 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group2Item2, group1Item2);
        equivalenceMock.expectEquivalent(group2Item2, group2Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
        equivalenceMock.expectHash(group2Item1, 2);
        equivalenceMock.expectHash(group2Item2, 2);
    
        equivalenceMock.replay();
    
        tester
            .addEquivalenceGroup(group1Item1, group1Item2)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.3K bytes
    - Viewed (0)
Back to top