Skip to content

Commit

Permalink
update test for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-logan-patrick-ct committed Oct 16, 2024
1 parent 7188f6b commit dbc0da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/pkg/argocd/argocd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,22 @@ func TestFindArgocdAppByPathAnnotationNotFound(t *testing.T) {
{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
"argocd.argoproj.io/manifest-generate-paths": "wrong-path",
"argocd.argoproj.io/manifest-generate-paths": "non-existing-path",
},
Name: "right-app",
Name: "non-existing-app",
},
Spec: argoappv1.ApplicationSpec{
Source: &argoappv1.ApplicationSource{
RepoURL: "",
Path: "right/",
Path: "non-existing/",
},
},
},
},
}

mockApplicationClient.EXPECT().List(gomock.Any(), gomock.Any()).Return(expectedResponse, nil)
app, err := findArgocdAppByManifestPathAnnotation(ctx, "right/path", "some-repo", mockApplicationClient)
app, err := findArgocdAppByManifestPathAnnotation(ctx, "non-existing/path", "some-repo", mockApplicationClient)
if err != nil {
t.Errorf("Error: %v", err)
}
Expand Down

0 comments on commit dbc0da8

Please sign in to comment.