You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tekton interceptor is a component plugged between the event listener and the task runs. The interceptor makes sure we don't start a pipeline for every alert we receive. Instead, alerts are filtered based on whether or not they are handled by CAD. Unhandled alerts are directly escalated and no pipeline is started.
3
+
The tekton interceptor is a component plugged between the event listener and the task runs. The interceptor makes sure we don't start a pipeline for every alert we receive. Instead, alerts are filtered based on whether or not they are handled by CAD. Unhandled alerts are directly escalated and no pipeline is started.
4
4
5
5
## Testing
6
6
7
7
### E2E
8
8
9
9
The interceptor has E2E tests starting the HTTP service and checking the HTTP responses. The tests are based on pre-existing PagerDuty alerts.
10
-
```
10
+
11
+
```bash
12
+
11
13
make e2e-interceptor
12
14
13
15
# To also print the output of the interceptor service:
14
16
CAD_E2E_VERBOSE=true make test-interceptor
15
-
```
17
+
```
18
+
19
+
## Development
20
+
21
+
It is possible to run the interceptor locally in a "minimal" state, where E2E is not used, and only the
22
+
crucial-to-run env variables (seen below) are set as placeholders. This is useful for *local* development/debugging.
0 commit comments