Skip to content

Commit 901fe22

Browse files
committed
final changes after rebase
Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
1 parent 5281363 commit 901fe22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

applicationset/services/pull_request/gitea_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func TestGiteaListReturnsRepositoryNotFoundError(t *testing.T) {
359359
_, _ = w.Write([]byte(`{"message": "404 Project Not Found"}`))
360360
})
361361

362-
svc, err := NewGiteaService("", server.URL, "nonexistent", "nonexistent", false)
362+
svc, err := NewGiteaService("", server.URL, "nonexistent", "nonexistent", nil, false)
363363
require.NoError(t, err)
364364

365365
prs, err := svc.List(t.Context())

util/kustomize/kustomize_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func TestKustomizeBuildComponentsMonoRepo(t *testing.T) {
522522
Components: []string{"../../../../../../kustomize/components/all"},
523523
IgnoreMissingComponents: true,
524524
}
525-
objs, _, _, err := kustomize.Build(&kustomizeSource, nil, nil, nil)
525+
objs, _, _, err := kustomize.Build(&kustomizeSource, nil, nil, nil, "")
526526
require.NoError(t, err)
527527
obj := objs[2]
528528
require.Equal(t, "hello-world-kustomize", obj.GetName())
@@ -611,7 +611,7 @@ func TestFailKustomizeBuildPatches(t *testing.T) {
611611
},
612612
}
613613

614-
_, _, _, err = kustomize.Build(&kustomizeSource, nil, nil, nil, "")
614+
_, _, _, err = kustomize.Build(&kustomizeSource, nil, nil, nil, "some-namespace")
615615
require.EqualError(t, err, "kustomization file not found in the path")
616616
}
617617

@@ -626,7 +626,7 @@ func TestKustomizeBuildComponentsNoFoundComponents(t *testing.T) {
626626
Components: []string{"./non-existent-component1", "./non-existent-component2"},
627627
IgnoreMissingComponents: true,
628628
}
629-
_, _, commands, err := kustomize.Build(&kustomizeSource, nil, nil, nil)
629+
_, _, commands, err := kustomize.Build(&kustomizeSource, nil, nil, nil, "")
630630
require.NoError(t, err)
631631

632632
// Verify that no "edit add component" command was executed

0 commit comments

Comments
 (0)