Skip to content

Commit

Permalink
Fix tests by adding additional parameters caused by the tls implement…
Browse files Browse the repository at this point in the history
…ation

Signed-off-by: Tarik Gürsoy <[email protected]>
  • Loading branch information
karat-1 committed Aug 20, 2024
1 parent addbe10 commit 2b3754f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applicationset/services/pull_request/scm-manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions applicationset/services/scm_provider/scm-manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2b3754f

Please sign in to comment.