From 4f50dc6ab1db5d681c3e1078535444cee9fc37b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarik=20G=C3=BCrsoy?= Date: Tue, 20 Aug 2024 10:43:22 +0200 Subject: [PATCH] Fix tests by adding additional parameters caused by the tls implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tarik Gürsoy --- applicationset/services/pull_request/scm-manager_test.go | 2 +- applicationset/services/scm_provider/scm-manager_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applicationset/services/pull_request/scm-manager_test.go b/applicationset/services/pull_request/scm-manager_test.go index 445fc08c0b9363..36fc1dbb63ed0b 100644 --- a/applicationset/services/pull_request/scm-manager_test.go +++ b/applicationset/services/pull_request/scm-manager_test.go @@ -96,7 +96,7 @@ func TestScmManagerPrList(t *testing.T) { scmmMockHandler(t)(w, r) })) defer ts.Close() - host, err := NewScmManagerService(context.Background(), "", ts.URL, "test-argocd", "pr-test", false) + host, err := NewScmManagerService(context.Background(), "", ts.URL, "test-argocd", "pr-test", false, "", nil) assert.Nil(t, err) prs, err := host.List(context.Background()) assert.Nil(t, err) diff --git a/applicationset/services/scm_provider/scm-manager_test.go b/applicationset/services/scm_provider/scm-manager_test.go index 9211426f9f43d6..2f9e93f9a8ef80 100644 --- a/applicationset/services/scm_provider/scm-manager_test.go +++ b/applicationset/services/scm_provider/scm-manager_test.go @@ -137,7 +137,7 @@ func TestScmManagerListRepos(t *testing.T) { defer ts.Close() for _, c := range cases { t.Run(c.name, func(t *testing.T) { - provider, _ := NewScmManagerProvider(context.Background(), "", ts.URL, c.allBranches, false, "") + provider, _ := NewScmManagerProvider(context.Background(), "", ts.URL, c.allBranches, false, "", nil) rawRepos, err := ListRepos(context.Background(), provider, c.filters, c.proto) if c.hasError { assert.NotNil(t, err) @@ -166,7 +166,7 @@ func TestScmManagerHasPath(t *testing.T) { scmManagerMockHandler(t)(w, r) })) defer ts.Close() - host, _ := NewScmManagerProvider(context.Background(), "", ts.URL, false, false, "") + host, _ := NewScmManagerProvider(context.Background(), "", ts.URL, false, false, "", nil) repo := &Repository{ Organization: "test-argocd", Repository: "pr-test",