Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for qsub (0.07 sec)

  1. security/pkg/server/ca/authenticate/oidc_test.go

    	token, err := generateJWT(&key, []byte(claims))
    	if err != nil {
    		t.Fatalf("failed to generate JWT: %v", err)
    	}
    	// Create an expired JWT token
    	expiredStr := strconv.FormatInt(time.Now().Add(-time.Hour).Unix(), 10)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. security/pkg/util/jwtutil_test.go

    			} else if err != nil && tc.expectedErr != nil && err.Error() != tc.expectedErr.Error() {
    				t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
    			} else if err == nil && exp.Sub(tc.expectedExp) != time.Duration(0) {
    				t.Errorf("%s: Got expiration time: %s, expected expiration time: %s",
    					id, exp.String(), tc.expectedExp.String())
    			}
    		})
    	}
    }
    
    func TestGetAud(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top