MCPcopy Create free account
hub / github.com/brimdata/super / testValidator

Function testValidator

service/auth/validator_test.go:19–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17)
18
19func testValidator(t *testing.T) *TokenValidator {
20 v, err := NewTokenValidator(testAudience, "https://testdomain", testJWKSFile)
21 require.NoError(t, err)
22 return v
23}
24
25func genToken(t *testing.T, claims jwt.MapClaims) string {
26 token, err := makeToken(testKeyID, testKeyFile, claims)

Callers 5

TestValidateFunction · 0.85
TestBadClaimsFunction · 0.85
TestKeyIDFunction · 0.85
TestAudienceSliceFunction · 0.85

Calls 1

NewTokenValidatorFunction · 0.85

Tested by

no test coverage detected