diff --git a/event_reporter/reporter/app_revision_test.go b/event_reporter/reporter/app_revision_test.go index 3dfc78127813b..27f8652a080a5 100644 --- a/event_reporter/reporter/app_revision_test.go +++ b/event_reporter/reporter/app_revision_test.go @@ -55,6 +55,9 @@ func TestGetRevisionsDetails(t *testing.T) { appServiceClient, &metrics.MetricsServer{}, fakeArgoDb(), + "", + false, + nil, } result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision}) @@ -120,6 +123,9 @@ func TestGetRevisionsDetails(t *testing.T) { appServiceClient, &metrics.MetricsServer{}, fakeArgoDb(), + "", + false, + nil, } result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision1, expectedRevision2}) @@ -162,6 +168,9 @@ func TestGetRevisionsDetails(t *testing.T) { appServiceClient, &metrics.MetricsServer{}, fakeArgoDb(), + "", + false, + nil, } result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision}) diff --git a/event_reporter/reporter/application_event_reporter_test.go b/event_reporter/reporter/application_event_reporter_test.go index 650b455094492..f98e7a69af766 100644 --- a/event_reporter/reporter/application_event_reporter_test.go +++ b/event_reporter/reporter/application_event_reporter_test.go @@ -172,6 +172,9 @@ func fakeReporter(customAppServiceClient appclient.ApplicationClient) *applicati customAppServiceClient, metricsServ, fakeArgoDb(), + "", + false, + nil, } } diff --git a/event_reporter/reporter/event_payload_test.go b/event_reporter/reporter/event_payload_test.go index b0cf4c9afe916..b78e3fa6631ca 100644 --- a/event_reporter/reporter/event_payload_test.go +++ b/event_reporter/reporter/event_payload_test.go @@ -68,7 +68,7 @@ func TestGetResourceEventPayload(t *testing.T) { app: &app, appTree: &appTree, revisionsMetadata: &revisionMetadata, - }, getMockedArgoTrackingMetadata()) + }, getMockedArgoTrackingMetadata(), "") require.NoError(t, err) var eventPayload events.EventPayload @@ -110,7 +110,7 @@ func TestGetResourceEventPayload(t *testing.T) { app: &app, appTree: &appTree, revisionsMetadata: &revisionMetadata, - }, getMockedArgoTrackingMetadata()) + }, getMockedArgoTrackingMetadata(), "") require.NoError(t, err) var eventPayload events.EventPayload @@ -146,6 +146,6 @@ func TestGetResourceEventPayloadWithoutRevision(t *testing.T) { }, &ReportedEntityParentApp{ app: &app, appTree: &appTree, - }, getMockedArgoTrackingMetadata()) + }, getMockedArgoTrackingMetadata(), "") assert.NoError(t, err) }