Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 682 for testPass (0.14 sec)

  1. cmd/bucket-policy-handlers_test.go

    		},
    	}
    	// Iterating over the cases, fetching the policy and validating the response.
    	for i, testCase := range testCases {
    		// expected bucket policy json string.
    		expectedBucketPolicyStr := fmt.Sprintf(testCase.expectedBucketPolicy, testCase.bucketName, testCase.bucketName)
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		recV4 := httptest.NewRecorder()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WindowsHostNetwork, testCase.hostNetworkFeatureEnabled)
    			pod := &v1.Pod{}
    			pod.Spec = *testCase.podSpec
    
    			wc, err := m.generatePodSandboxWindowsConfig(pod)
    
    			assert.Equal(t, testCase.expectedWindowsConfig, wc)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. cmd/object-api-putobject_test.go

    		},
    	}
    	for i, testCase := range testCases {
    		in := mustGetPutObjReader(t, bytes.NewReader(testCase.inputData), testCase.inputDataSize, testCase.inputMeta["etag"], testCase.inputSHA256)
    		objInfo, actualErr := obj.PutObject(context.Background(), testCase.bucketName, testCase.objName, in, ObjectOptions{UserDefined: testCase.inputMeta})
    		if actualErr != nil && testCase.expectedError == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. pkg/volume/util/resize_util_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testCases {
    		updatePVC := MergeResizeConditionOnPVC(testcase.pvc, testcase.newConditions)
    
    		updateConditions := updatePVC.Status.Conditions
    		if !reflect.DeepEqual(updateConditions, testcase.finalConditions) {
    			t.Errorf("Expected updated conditions for test %s to be %v but got %v",
    				testcase.description,
    				testcase.finalConditions, updateConditions)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/mergelocals_test.go

    				v3: []int{0, 1, 2},
    			},
    			experr: true,
    		},
    	}
    
    	for k, testcase := range testcases {
    		mls, err := liveness.MakeMergeLocalsState(testcase.partition, testcase.vars)
    		t.Logf("tc %d err is %v\n", k, err)
    		if testcase.experr && err == nil {
    			t.Fatalf("tc:%d missing error mls %v", k, mls)
    		} else if !testcase.experr && err != nil {
    			t.Fatalf("tc:%d unexpected error mls %v", k, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/options/authentication_test.go

    		},
    	}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			options := NewBuiltInAuthenticationOptions()
    			options.OIDC = testcase.testOIDC
    			options.ServiceAccounts = testcase.testSA
    			options.WebHook = testcase.testWebHook
    			options.AuthenticationConfigFile = testcase.testAuthenticationConfigFile
    			for _, f := range testcase.enabledFeatures {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/JUnitTestClassExecutionResult.groovy

         * This method exists for compatibility purposes, but is equivalent to {@link #assertTestsExecuted(java.lang.String[])}.
         */
        @Override
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
            return assertTestsExecuted(testCases.collect { it.displayName } as String[])
        }
    
        TestClassExecutionResult assertTestCount(int tests, int failures, int errors) {
            assert testClassNode.@tests == tests
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pkg/controller/nodeipam/ipam/range_allocator_test.go

    					break
    				}
    			}
    		}
    	}
    
    	// run the test cases
    	for _, tc := range testCases {
    		testFunc(tc)
    	}
    }
    
    func TestAllocateOrOccupyCIDRFailure(t *testing.T) {
    	testCases := []testCase{
    		{
    			description: "When there's no ServiceCIDR return first CIDR in range",
    			fakeNodeHandler: &testutil.FakeNodeHandler{
    				Existing: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  9. cmd/jwt_test.go

    					"Authorization": []string{"invalid-token"},
    				},
    			},
    			expectedErr: errAuthentication,
    		},
    	}
    
    	for i, testCase := range testCases {
    		_, _, _, gotErr := metricsRequestAuthenticate(testCase.req)
    		if testCase.expectedErr != gotErr {
    			t.Errorf("Test %d, expected err %s, got %s", i+1, testCase.expectedErr, gotErr)
    		}
    	}
    }
    
    func BenchmarkParseJWTStandardClaims(b *testing.B) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:45:14 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. 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)
Back to top