From dbc0da89ab7816e45d857e056c5733934849c72a Mon Sep 17 00:00:00 2001 From: Jared Patrick Date: Wed, 16 Oct 2024 15:33:34 -0400 Subject: [PATCH] update test for clarity --- internal/pkg/argocd/argocd_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pkg/argocd/argocd_test.go b/internal/pkg/argocd/argocd_test.go index 3d461a2e..80e094d9 100644 --- a/internal/pkg/argocd/argocd_test.go +++ b/internal/pkg/argocd/argocd_test.go @@ -288,14 +288,14 @@ 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/", }, }, }, @@ -303,7 +303,7 @@ func TestFindArgocdAppByPathAnnotationNotFound(t *testing.T) { } 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) }