(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestApiKeyAuthQuery(t *testing.T) { |
| 110 | p, _ := NewAuthProvider(AuthConfig{ |
| 111 | Scheme: "api_key", |
| 112 | KeyName: "api_key", |
| 113 | KeyValue: "secret", |
| 114 | KeyIn: "query", |
| 115 | }, nil) |
| 116 | req := newTestRequest(t, "https://x/users") |
| 117 | _ = p.Apply(context.Background(), req, nil) |
| 118 | if !strings.Contains(req.URL.RawQuery, "api_key=secret") { |
| 119 | t.Errorf("RawQuery = %q, missing api_key", req.URL.RawQuery) |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func TestOAuth2ClientCredentials(t *testing.T) { |
| 124 | var calls int32 |
nothing calls this directly
no test coverage detected