From 4d3b3456a8727494ffdc7a4c82c4801bd8f9d5a2 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Thu, 28 Aug 2025 01:30:02 +0200 Subject: [PATCH] Properly match new output in pull cmd tests Signed-off-by: Benoit Tigeot --- pkg/action/pull_test.go | 3 +-- pkg/cmd/pull_test.go | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/action/pull_test.go b/pkg/action/pull_test.go index 69af3c2fc..f7cd45885 100644 --- a/pkg/action/pull_test.go +++ b/pkg/action/pull_test.go @@ -61,13 +61,12 @@ entries: srv := httptest.NewServer(mux) defer srv.Close() - // Isolate Helm env/cache to temp dirs for deterministic tests. settings := cli.New() settings.RepositoryCache = t.TempDir() settings.RepositoryConfig = filepath.Join(t.TempDir(), "repositories.yaml") settings.ContentCache = t.TempDir() - cfg := &Configuration{} // minimal config; no K8s or registry for HTTP path + cfg := &Configuration{} p := NewPull(WithConfig(cfg)) p.Settings = settings diff --git a/pkg/cmd/pull_test.go b/pkg/cmd/pull_test.go index c3156c394..8a7a223cd 100644 --- a/pkg/cmd/pull_test.go +++ b/pkg/cmd/pull_test.go @@ -44,7 +44,9 @@ func TestPullCmd(t *testing.T) { t.Fatal(err) } - helmTestKeyOut := "Signed by: Helm Testing (This key should only be used for testing. DO NOT TRUST.) \n" + + helmTestKeyOut := "Pulled: signtest:0.1.0\n" + + "Digest: sha256:e5ef611620fb97704d8751c16bab17fedb68883bfb0edc76f78a70e9173f9b55\n" + + "Signed by: Helm Testing (This key should only be used for testing. DO NOT TRUST.) \n" + "Using Key With Fingerprint: 5E615389B53CA37F0EE60BD3843BBF981FC18762\n" + "Chart Hash Verified: "