From 6654b8f5777c6a71707a0528cdad1b8f95f115c1 Mon Sep 17 00:00:00 2001 From: Payal Godhani Date: Fri, 31 Jan 2025 12:50:05 -0800 Subject: [PATCH] Minor nit fix -e Signed-off-by: Payal Godhani --- pkg/action/install.go | 2 +- pkg/repo/chartrepo_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index 17c453a28..6d009e9e7 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -809,7 +809,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( // Host on URL (returned from url.Parse) contains the port if present. // This check ensures credentials are not passed between different - // services on different ports. + // services on different ports if c.PassCredentialsAll || (u1.Scheme == u2.Scheme && u1.Host == u2.Host) { dl.Options = append(dl.Options, getter.WithBasicAuth(c.Username, c.Password)) } else { diff --git a/pkg/repo/chartrepo_test.go b/pkg/repo/chartrepo_test.go index 1dd8f50a9..2dbafc516 100644 --- a/pkg/repo/chartrepo_test.go +++ b/pkg/repo/chartrepo_test.go @@ -290,7 +290,7 @@ func startLocalTLSServerForTests(handler http.Handler) (*httptest.Server, error) return httptest.NewTLSServer(handler), nil } -func TestChartInAuthRepoURL(t *testing.T) { +func TestChartInRepoURL(t *testing.T) { srv, err := startLocalTLSServerForTests(nil) if err != nil { t.Fatal(err)