From 07babe4ddf33a8bb9ddff2d72a6731d75d273c73 Mon Sep 17 00:00:00 2001 From: Gareth Date: Mon, 29 Jun 2026 23:28:35 -0700 Subject: [PATCH] chore: fix backresthandler tests for new summary dashboard --- internal/api/backresthandler_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/api/backresthandler_test.go b/internal/api/backresthandler_test.go index 015aaaeb..b92a935c 100644 --- a/internal/api/backresthandler_test.go +++ b/internal/api/backresthandler_test.go @@ -353,7 +353,7 @@ func TestGetSummaryDashboardHistory(t *testing.T) { {Id: "local", Guid: repoGUID, Uri: t.TempDir(), Password: "test", Flags: []string{"--no-cache"}}, }, Plans: []*v1.Plan{ - {Id: "test", Repo: "local", Schedule: &v1.Schedule{Schedule: &v1.Schedule_Disabled{Disabled: true}}}, + {Id: "test", Repo: "local", Paths: []string{t.TempDir()}, Schedule: &v1.Schedule{Schedule: &v1.Schedule_Disabled{Disabled: true}}}, }, })) @@ -369,6 +369,7 @@ func TestGetSummaryDashboardHistory(t *testing.T) { start := dayMs(daysAgo) op := &v1.Operation{ InstanceId: "test", + RepoId: "local", RepoGuid: repoGUID, PlanId: "test", FlowId: flowID, @@ -491,7 +492,7 @@ func TestGetSummaryDashboardHistoryNoCutoff(t *testing.T) { {Id: "local", Guid: repoGUID, Uri: t.TempDir(), Password: "test", Flags: []string{"--no-cache"}}, }, Plans: []*v1.Plan{ - {Id: "test", Repo: "local", Schedule: &v1.Schedule{Schedule: &v1.Schedule_Disabled{Disabled: true}}}, + {Id: "test", Repo: "local", Paths: []string{t.TempDir()}, Schedule: &v1.Schedule{Schedule: &v1.Schedule_Disabled{Disabled: true}}}, }, })) @@ -501,6 +502,7 @@ func TestGetSummaryDashboardHistoryNoCutoff(t *testing.T) { start := midnight.AddDate(0, 0, -daysAgo).Add(12 * time.Hour).UnixMilli() op := &v1.Operation{ InstanceId: "test", + RepoId: "local", RepoGuid: repoGUID, PlanId: "test", FlowId: int64(daysAgo + 1),