From 76718eb73e3d1e2a43363d80ab15366706b6491f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 11 Jul 2025 13:17:34 +0200 Subject: syz-cluster: generate web dashboard URLs for reports Take web dashboard URL from the config and use it to generate links for logs, reproducers, etc. --- syz-cluster/controller/processor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'syz-cluster/controller/processor_test.go') diff --git a/syz-cluster/controller/processor_test.go b/syz-cluster/controller/processor_test.go index 68c62ba48..147f5d6e2 100644 --- a/syz-cluster/controller/processor_test.go +++ b/syz-cluster/controller/processor_test.go @@ -97,7 +97,7 @@ func TestFinishRunningSteps(t *testing.T) { ExtID: "ext-id", Title: "title", } - _, sessionID := controller.UploadTestSeries(t, ctx, client, series) + ids := controller.UploadTestSeries(t, ctx, client, series) buildResp := controller.UploadTestBuild(t, ctx, client, &api.Build{ Arch: "amd64", TreeName: "mainline", @@ -105,7 +105,7 @@ func TestFinishRunningSteps(t *testing.T) { CommitHash: "abcd", }) err := client.UploadTestResult(ctx, &api.TestResult{ - SessionID: sessionID, + SessionID: ids.SessionID, BaseBuildID: buildResp.ID, TestName: "test", Result: api.TestRunning, @@ -119,7 +119,7 @@ func TestFinishRunningSteps(t *testing.T) { // Verify that the session test is finished. // A bit hacky, but it works. - list, err := processor.sessionTestRepo.BySessionRaw(ctx, sessionID) + list, err := processor.sessionTestRepo.BySessionRaw(ctx, ids.SessionID) assert.NoError(t, err) assert.Equal(t, api.TestError, list[0].Result) } -- cgit mrf-deployment