Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 682 for testPass (0.37 sec)

  1. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.description, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUManagerPolicyAlphaOptions, true)
    
    			var activePods []*v1.Pod
    			for p := range testCase.assignments {
    				pod := v1.Pod{}
    				pod.UID = types.UID(p)
    				for c := range testCase.assignments[p] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/registry/core/service/strategy_test.go

    			expectMatch:   false,
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			m := Matcher(labels.Everything(), testCase.fieldSelector)
    			result, err := m.Matches(testCase.in)
    			if err != nil {
    				t.Errorf("Unexpected error %v", err)
    			}
    			if result != testCase.expectMatch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  3. internal/bucket/replication/replication_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.opts.Name, func(t *testing.T) {
    			result := testCase.c.Replicate(testCase.opts)
    			if result != testCase.expectedResult {
    				t.Errorf("expected: %v, got: %v", testCase.expectedResult, result)
    			}
    		})
    	}
    }
    
    func TestHasActiveRules(t *testing.T) {
    	testCases := []struct {
    		inputConfig    string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/TestClassExecutionResult.java

         *
         * This supports JUnit5 parameterized tests where the test name and display name may not match.
         */
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases);
    
        TestClassExecutionResult assertTestCount(int tests, int failures, int errors);
    
        int getTestCount();
    
        /**
         * Asserts that the given tests have the given outcome for the given test class.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. istioctl/pkg/workload/workload_test.go

      template:
        ports:
          grpc: 3550
          http: 8080
        serviceAccount: test
    `
    )
    
    type testcase struct {
    	description       string
    	expectedException bool
    	args              []string
    	expectedOutput    string
    	namespace         string
    }
    
    func TestWorkloadGroupCreate(t *testing.T) {
    	cases := []testcase{
    		{
    			description:       "Invalid command args - missing service name and namespace",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		allocDevices, err := testManager.devicesToAllocate(testCase.podUID, testCase.contName, testCase.resource, testCase.required, testCase.reusableDevices)
    		if !reflect.DeepEqual(err, testCase.expErr) {
    			t.Errorf("devicePluginManager error (%v). expected error: %v but got: %v",
    				testCase.description, testCase.expErr, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

            DefaultTestExecutionResult result = new DefaultTestExecutionResult(testDirectory)
            result.assertTestClassesExecuted('org.gradle.OkTest', 'org.gradle.OtherTest')
            result.testClass('org.gradle.OkTest').assertTestPassed('ok')
            result.testClass('org.gradle.OtherTest').assertTestPassed('ok')
        }
    
        def "runs all tests in the same forked jvm"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    	}
    
    	for k, testCase := range testCases {
    		req, _ := http.NewRequest("GET", "/", nil)
    		if !testCase.Insecure {
    			req.TLS = &tls.ConnectionState{PeerCertificates: testCase.Certs}
    		}
    
    		// this effectively tests the simple dynamic verify function.
    		a := New(testCase.Opts, testCase.User)
    
    		resp, ok, err := a.AuthenticateRequest(req)
    
    		if testCase.ExpectErr && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_plugin_test.go

    			shouldFail: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		// Arrange & Act
    		err := PluginHandler.ValidatePlugin(tc.pluginName, tc.endpoint, tc.versions)
    
    		// Assert
    		if tc.shouldFail && err == nil {
    			t.Fatalf("expecting ValidatePlugin to fail, but got nil error for testcase: %#v", tc)
    		}
    		if !tc.shouldFail && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    			decodeIntoObject: &testapigroupv1.Carp{}, // which client-go's scheme doesn't recognize
    			baseErr:          nil,
    		},
    	}
    	for _, testCase := range testCases {
    		err := transformDecodeError(testCase.typer, testCase.baseErr, testCase.decodeIntoObject, testCase.decodedGVK, []byte(``))
    		if apiStatus, ok := err.(apierrors.APIStatus); !ok || apiStatus.Status().Code != http.StatusBadRequest {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top