- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for expectedFailure (0.07 seconds)
-
internal/auth/credentials_test.go
} for _, testCase := range testCases { t.Run("", func(t *testing.T) { _, err := ExpToInt64(testCase.exp) if err != nil && !testCase.expectedFailure { t.Errorf("Expected success but got failure %s", err) } if err == nil && testCase.expectedFailure { t.Error("Expected failure but got success") } }) } } func TestIsAccessKeyValid(t *testing.T) { testCases := []struct {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
internal/config/identity/openid/jwt_test.go
claims := map[string]any{} 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 { t.Error("Expected failure, got success") } }) } } func initJWKSServer() *httptest.Server {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8.2K bytes - Click Count (0)