(t *testing.T, webhookPath string)
| 236 | } |
| 237 | |
| 238 | func findWebhookRequests(t *testing.T, webhookPath string) []wmJournal.GetRequestResponse { |
| 239 | t.Helper() |
| 240 | wm := newWireMockClient() |
| 241 | |
| 242 | allReqs, err := wm.GetAllRequests() |
| 243 | require.NoError(t, err) |
| 244 | |
| 245 | var matched []wmJournal.GetRequestResponse |
| 246 | for _, req := range allReqs.Requests { |
| 247 | if strings.Contains(req.Request.URL, webhookPath) || strings.Contains(req.Request.AbsoluteURL, webhookPath) { |
| 248 | matched = append(matched, req) |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | return matched |
| 253 | } |
| 254 | |
| 255 | func assertWebhookJWT(t *testing.T, request wmJournal.Request, signingKey string) { |
| 256 | t.Helper() |
no test coverage detected