Skip to content

Commit b41a8ae

Browse files
committed
fix duplicate import
Signed-off-by: Atif Ali <[email protected]>
1 parent a16f85b commit b41a8ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e/managed_by_url_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111

1212
"github.com/argoproj/argo-cd/v3/pkg/apiclient/application"
1313
"github.com/argoproj/argo-cd/v3/pkg/apiclient/settings"
14-
"github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
1514
. "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
1615
"github.com/argoproj/argo-cd/v3/test/e2e/fixture"
1716
. "github.com/argoproj/argo-cd/v3/test/e2e/fixture/app"
@@ -38,7 +37,7 @@ func TestManagedByURLWithAnnotation(t *testing.T) {
3837
if appObj.Annotations == nil {
3938
appObj.Annotations = make(map[string]string)
4039
}
41-
appObj.Annotations[v1alpha1.AnnotationKeyManagedByURL] = managedByURL
40+
appObj.Annotations[AnnotationKeyManagedByURL] = managedByURL
4241

4342
_, err = fixture.AppClientset.ArgoprojV1alpha1().Applications(fixture.ArgoCDNamespace).Update(t.Context(), appObj, metav1.UpdateOptions{})
4443
if err == nil {
@@ -75,7 +74,7 @@ func TestManagedByURLWithAnnotation(t *testing.T) {
7574
Then().
7675
And(func(app *Application) {
7776
// Test that the managed-by-url annotation is preserved
78-
assert.Equal(t, managedByURL, app.Annotations[v1alpha1.AnnotationKeyManagedByURL])
77+
assert.Equal(t, managedByURL, app.Annotations[AnnotationKeyManagedByURL])
7978

8079
// Test that the application links include the managed-by-url in the deep links
8180
conn, appClient, err := fixture.ArgoCDClientset.NewApplicationClient()

0 commit comments

Comments
 (0)