Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSave (0.14 sec)

  1. 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) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			claims := map[string]interface{}{}
    			claims["exp"] = testCase.exp
    			err := updateClaimsExpiry(testCase.dsecs, claims)
    			if err != nil && !testCase.expectedFailure {
    				t.Errorf("Expected success, got failure %s", err)
    			}
    			if err == nil && testCase.expectedFailure {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top