Skip to content

Commit

Permalink
gar: Fix test after removing external reference update on delete
Browse files Browse the repository at this point in the history
Co-authored-by: Christer Edvartsen <christer.edvartsen@nav.no>
  • Loading branch information
thokra-nav and christeredvartsen committed Jul 2, 2024
1 parent 79a972f commit 10a5aeb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/reconcilers/google/gar/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,12 +907,6 @@ func TestDelete(t *testing.T) {
}

apiClient, mockServer := apiclient.NewMockClient(t)
mockServer.Teams.EXPECT().
SetTeamExternalReferences(mock.Anything, mock.MatchedBy(func(req *protoapi.SetTeamExternalReferencesRequest) bool {
return req.Slug == teamSlug && *req.GarRepository == ""
})).
Return(&protoapi.SetTeamExternalReferencesResponse{}, nil).
Once()
mockServer.AuditLogs.EXPECT().
Create(mock.Anything, mock.MatchedBy(func(req *protoapi.CreateAuditLogsRequest) bool {
return req.ReconcilerName == "google:gcp:gar" && req.Action == "google:gar:delete"
Expand Down

0 comments on commit 10a5aeb

Please sign in to comment.