File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package argocd
3
3
import (
4
4
"testing"
5
5
"github.com/argoproj-labs/argocd-image-updater/pkg/common"
6
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
6
7
v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
7
8
)
8
9
9
10
// Test that grouping does not mix different branches in one commit/push
10
11
func Test_groupIntentsByBranch (t * testing.T ) {
11
- appA := & v1alpha1.Application {Annotations : map [string ]string {common .GitBranchAnnotation : "main:appA-branch" }}
12
- appB := & v1alpha1.Application {Annotations : map [string ]string {common .GitBranchAnnotation : "main:appB-branch" }}
12
+ appA := & v1alpha1.Application {ObjectMeta : v1. ObjectMeta { Annotations : map [string ]string {common .GitBranchAnnotation : "main:appA-branch" } }}
13
+ appB := & v1alpha1.Application {ObjectMeta : v1. ObjectMeta { Annotations : map [string ]string {common .GitBranchAnnotation : "main:appB-branch" } }}
13
14
wbcA := & WriteBackConfig {GitRepo : "https://example/repo.git" , GitWriteBranch : "appA-branch" }
14
15
wbcB := & WriteBackConfig {GitRepo : "https://example/repo.git" , GitWriteBranch : "appB-branch" }
15
16
You can’t perform that action at this time.
0 commit comments