Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertPong (0.35 sec)

  1. cmd/signature-v4-utils_test.go

    			t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
    		}
    	}
    }
    
    // TestIsValidRegion - Tests validate the comparison logic for asserting whether the region from http request is valid.
    func TestIsValidRegion(t *testing.T) {
    	testCases := []struct {
    		inputReqRegion  string
    		inputConfRegion string
    
    		expectedResult bool
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    			testLabels = append(testLabels, LabelSet{namespaceLabel, podLabel})
    		}
    	}
    	type assertion struct {
    		namespaceLabel klabels.Set
    		objectLabel    klabels.Set
    		match          string
    	}
    	baseAssertions := []assertion{
    		{empty, empty, ""},
    		{empty, revLabel, "istiod-canary"},
    		{empty, objEnabled, "istiod"},
    		{empty, objEnabledAndRev, "istiod-canary"},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    		},
    	}
    
    	// Iterating over the test cases, calling the function under test and asserting the response.
    	for i, testCase := range testCases {
    		// obtain the put bucket policy request body.
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  4. cmd/object-api-putobject_test.go

    			continue
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    		if actualErr == nil {
    			// Asserting whether the md5 output is correct.
    			if expectedMD5, ok := testCase.inputMeta["etag"]; ok && expectedMD5 != objInfo.ETag {
    				t.Errorf("Test %d: %s: Calculated Md5 different from the actual one %s.", i, instanceType, objInfo.ETag)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top