From f20e88b2468bdcdb631b14e384f1f9a67e984013 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 13 Feb 2025 11:57:14 +0100 Subject: 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. --- syz-cluster/pkg/controller/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'syz-cluster/pkg/controller/api_test.go') 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"), -- cgit mrf-deployment