@@ -11,7 +11,6 @@ import (
11
11
12
12
"github.com/argoproj/argo-cd/v3/pkg/apiclient/application"
13
13
"github.com/argoproj/argo-cd/v3/pkg/apiclient/settings"
14
- "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
15
14
. "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
16
15
"github.com/argoproj/argo-cd/v3/test/e2e/fixture"
17
16
. "github.com/argoproj/argo-cd/v3/test/e2e/fixture/app"
@@ -38,7 +37,7 @@ func TestManagedByURLWithAnnotation(t *testing.T) {
38
37
if appObj .Annotations == nil {
39
38
appObj .Annotations = make (map [string ]string )
40
39
}
41
- appObj .Annotations [v1alpha1 . AnnotationKeyManagedByURL ] = managedByURL
40
+ appObj .Annotations [AnnotationKeyManagedByURL ] = managedByURL
42
41
43
42
_ , err = fixture .AppClientset .ArgoprojV1alpha1 ().Applications (fixture .ArgoCDNamespace ).Update (t .Context (), appObj , metav1.UpdateOptions {})
44
43
if err == nil {
@@ -75,7 +74,7 @@ func TestManagedByURLWithAnnotation(t *testing.T) {
75
74
Then ().
76
75
And (func (app * Application ) {
77
76
// 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 ])
79
78
80
79
// Test that the application links include the managed-by-url in the deep links
81
80
conn , appClient , err := fixture .ArgoCDClientset .NewApplicationClient ()
0 commit comments