Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh committed Dec 15, 2024
1 parent d944d2b commit 4d922ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions event_reporter/reporter/app_revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func TestGetRevisionsDetails(t *testing.T) {
appServiceClient,
&metrics.MetricsServer{},
fakeArgoDb(),
"",
false,
nil,
}

result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision})
Expand Down Expand Up @@ -120,6 +123,9 @@ func TestGetRevisionsDetails(t *testing.T) {
appServiceClient,
&metrics.MetricsServer{},
fakeArgoDb(),
"",
false,
nil,
}

result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision1, expectedRevision2})
Expand Down Expand Up @@ -162,6 +168,9 @@ func TestGetRevisionsDetails(t *testing.T) {
appServiceClient,
&metrics.MetricsServer{},
fakeArgoDb(),
"",
false,
nil,
}

result, _ := reporter.getRevisionsDetails(context.Background(), &app, []string{expectedRevision})
Expand Down
3 changes: 3 additions & 0 deletions event_reporter/reporter/application_event_reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func fakeReporter(customAppServiceClient appclient.ApplicationClient) *applicati
customAppServiceClient,
metricsServ,
fakeArgoDb(),
"",
false,
nil,
}
}

Expand Down
6 changes: 3 additions & 3 deletions event_reporter/reporter/event_payload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -146,6 +146,6 @@ func TestGetResourceEventPayloadWithoutRevision(t *testing.T) {
}, &ReportedEntityParentApp{
app: &app,
appTree: &appTree,
}, getMockedArgoTrackingMetadata())
}, getMockedArgoTrackingMetadata(), "")
assert.NoError(t, err)
}

0 comments on commit 4d922ea

Please sign in to comment.