diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-02-13 11:57:14 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-02-14 13:40:12 +0000 |
| commit | f20e88b2468bdcdb631b14e384f1f9a67e984013 (patch) | |
| tree | d2758c08ab9deea9354a91237a3d9234de0efce3 /syz-cluster/pkg/controller/api_test.go | |
| parent | eaf86f3f4dc8a7190abf09fe840e20bcf83709d8 (diff) | |
syz-cluster: report session results
Provide an API to set up the reporting of finished sessions for which
syz-cluster collected reportable findings.
The actual sending of the results is to be done in a separate component
that would:
1) Call Next() to get the next report to send.
2) Call Confirm() to confirm that the report has been sent.
3) Call Upstream() if the report has been moderated and needs to be sent
to e.g. public mailing lists.
Diffstat (limited to 'syz-cluster/pkg/controller/api_test.go')
| -rw-r--r-- | syz-cluster/pkg/controller/api_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syz-cluster/pkg/controller/api_test.go b/syz-cluster/pkg/controller/api_test.go index 2e3483414..f3954d4f3 100644 --- a/syz-cluster/pkg/controller/api_test.go +++ b/syz-cluster/pkg/controller/api_test.go @@ -57,7 +57,7 @@ func TestAPISaveFinding(t *testing.T) { assert.NoError(t, err) t.Run("not existing test", func(t *testing.T) { - err = client.UploadFinding(ctx, &api.Finding{ + err = client.UploadFinding(ctx, &api.NewFinding{ SessionID: sessionID, TestName: "unknown test", }) @@ -65,7 +65,7 @@ func TestAPISaveFinding(t *testing.T) { }) t.Run("must succeed", func(t *testing.T) { - finding := &api.Finding{ + finding := &api.NewFinding{ SessionID: sessionID, TestName: "test", Report: []byte("report"), |
