Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 723 for testPass (0.28 sec)

  1. cmd/auth-handler_test.go

    	}
    
    	// Validates all testcases.
    	for i, testCase := range testCases {
    		s3Error := isReqAuthenticated(ctx, testCase.req, globalSite.Region(), serviceS3)
    		if s3Error != testCase.s3Error {
    			if _, err := io.ReadAll(testCase.req.Body); toAPIErrorCode(ctx, err) != testCase.s3Error {
    				t.Fatalf("Test %d: Unexpected S3 error: want %d - got %d (got after reading request %s)", i, testCase.s3Error, s3Error, toAPIError(ctx, err).Code)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestNGExecutionResult.groovy

        }
    
        private def findTestClass(String testClass) {
            def testClasses = findTestClasses()
            if (!testClasses.containsKey(testClass)) {
                throw new AssertionError("Could not find test class ${testClass}. Found ${testClasses.keySet()}")
            }
            testClasses[testClass]
        }
    
        private def findTestClassStartsWith(String testClass) {
            def testClasses = findTestClasses()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. pkg/controller/ttl/ttl_controller_test.go

    			expectedTTL:  300,
    		},
    	}
    
    	for i, testCase := range testCases {
    		ttlController := &Controller{
    			queue:             workqueue.NewTypedRateLimitingQueue(workqueue.DefaultTypedControllerRateLimiter[string]()),
    			nodeCount:         testCase.nodeCount,
    			desiredTTLSeconds: testCase.desiredTTL,
    			boundaryStep:      testCase.boundaryStep,
    		}
    		if testCase.addNode {
    			logger, _ := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. pkg/proxy/util/utils_test.go

    			port:   12345,
    			expect: "[fd00:1::5]",
    		},
    	}
    
    	for i := range testCases {
    		got := AppendPortIfNeeded(testCases[i].addr, testCases[i].port)
    		if testCases[i].expect != got {
    			t.Errorf("case %s: expected %v, got %v", testCases[i].name, testCases[i].expect, got)
    		}
    	}
    }
    
    func TestMapIPsByIPFamily(t *testing.T) {
    	testCases := []struct {
    		desc            string
    		ipString        []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. cmd/policy_test.go

    		{yourbucketAnonGetObjectActionArgs, false},
    		{yourbucketGetObjectActionArgs, true},
    	}
    
    	for i, testCase := range testCases {
    		result := p.IsAllowed(testCase.args)
    
    		if result != testCase.expectedResult {
    			t.Fatalf("case %v: expected: %v, got: %v\n", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    
    func getReadOnlyStatement(bucketName, prefix string) []miniogopolicy.Statement {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. cmd/erasure-sets_test.go

    		{512},
    		{1024},
    	}
    	for _, testCase := range cases {
    		testCase := testCase
    		key := randString(testCase.key)
    		b.Run("", func(b *testing.B) {
    			b.SetBytes(1024)
    			b.ReportAllocs()
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				sipHashMod(key, 16, testUUID)
    			}
    		})
    	}
    }
    
    // TestSipHashMod - test sip hash.
    func TestSipHashMod(t *testing.T) {
    	testCases := []struct {
    		objectName string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. pkg/controlplane/reconcilers/endpointsadapter_test.go

    		},
    	}
    
    	for name, testCase := range testCases {
    		t.Run(name, func(t *testing.T) {
    			client := fake.NewSimpleClientset(testCase.initialState...)
    			epAdapter := NewEndpointsAdapter(client.CoreV1(), client.DiscoveryV1())
    
    			endpoints, err := epAdapter.Get(testCase.namespaceParam, testCase.nameParam, metav1.GetOptions{})
    
    			if !apiequality.Semantic.DeepEqual(testCase.expectedError, err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/utils_test.go

    		},
    	}
    
    	// Validate all test cases.
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			bucketName, objectName := path2BucketObject(testCase.path)
    			if bucketName != testCase.bucket {
    				t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.bucket, bucketName)
    			}
    			if objectName != testCase.object {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. cmd/handler-utils_test.go

    		{malformedReq, globalMinioDefaultRegion, ErrMalformedXML},
    	}
    
    	for i, testCase := range testCases {
    		config.SetRegion(globalServerConfig, testCase.serverConfigRegion)
    		_, actualCode := parseLocationConstraint(testCase.request)
    		if testCase.expectedCode != actualCode {
    			t.Errorf("Test %d: Expected the APIErrCode to be %d, but instead found %d", i+1, testCase.expectedCode, actualCode)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/topologymanager/policy_options_test.go

    			expectedAvailable: true,
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.option, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, testCase.featureGate, testCase.featureGateEnable)
    			err := CheckPolicyOptionAvailable(testCase.option)
    			isEnabled := (err == nil)
    			if isEnabled != testCase.expectedAvailable {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top