@@ -43,8 +43,8 @@ func Test_UpdateApplication(t *testing.T) {
43
43
return & regMock , nil
44
44
}
45
45
46
- argoClient := argomock.ArgoCD {}
47
- argoClient .On ("UpdateSpec" , mock .Anything , mock .Anything ).Return (nil , nil )
46
+ argoClient := argomock.ArgoCD {}
47
+ argoClient .On ("UpdateSpec" , mock .Anything , mock .Anything ).Return (nil , nil )
48
48
49
49
kubeClient := kube.ImageUpdaterKubernetesClient {
50
50
KubeClient : & registryKube.KubernetesClient {
@@ -83,15 +83,15 @@ func Test_UpdateApplication(t *testing.T) {
83
83
},
84
84
Images : * parseImageList (annotations ),
85
85
}
86
- res := UpdateApplication (& UpdateConfiguration {
86
+ res := UpdateApplication (& UpdateConfiguration {
87
87
NewRegFN : mockClientFn ,
88
88
ArgoClient : & argoClient ,
89
89
KubeClient : & kubeClient ,
90
90
UpdateApp : appImages ,
91
91
DryRun : false ,
92
92
}, NewSyncIterationState ())
93
- assert .Equal (t , v1alpha1 .KustomizeImage ("gcr.io/jannfis/foobar:1.0.3" ), appImages .Application .Spec .Source .Kustomize .Images [0 ])
94
- assert .Equal (t , v1alpha1 .KustomizeImage ("gcr.io/jannfis/barbar:1.0.3" ), appImages .Application .Spec .Source .Kustomize .Images [1 ])
93
+ assert .Equal (t , v1alpha1 .KustomizeImage ("gcr.io/jannfis/foobar:1.0.3" ), appImages .Application .Spec .Source .Kustomize .Images [0 ])
94
+ assert .Equal (t , v1alpha1 .KustomizeImage ("gcr.io/jannfis/barbar:1.0.3" ), appImages .Application .Spec .Source .Kustomize .Images [1 ])
95
95
assert .Equal (t , 0 , res .NumErrors )
96
96
assert .Equal (t , 0 , res .NumSkipped )
97
97
assert .Equal (t , 1 , res .NumApplicationsProcessed )
0 commit comments