Properly match new output in pull cmd tests

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/31206/head
Benoit Tigeot 4 weeks ago
parent 3ae2f48d02
commit 4d3b3456a8
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -61,13 +61,12 @@ entries:
srv := httptest.NewServer(mux) srv := httptest.NewServer(mux)
defer srv.Close() defer srv.Close()
// Isolate Helm env/cache to temp dirs for deterministic tests.
settings := cli.New() settings := cli.New()
settings.RepositoryCache = t.TempDir() settings.RepositoryCache = t.TempDir()
settings.RepositoryConfig = filepath.Join(t.TempDir(), "repositories.yaml") settings.RepositoryConfig = filepath.Join(t.TempDir(), "repositories.yaml")
settings.ContentCache = t.TempDir() settings.ContentCache = t.TempDir()
cfg := &Configuration{} // minimal config; no K8s or registry for HTTP path cfg := &Configuration{}
p := NewPull(WithConfig(cfg)) p := NewPull(WithConfig(cfg))
p.Settings = settings p.Settings = settings

@ -44,7 +44,9 @@ func TestPullCmd(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
helmTestKeyOut := "Signed by: Helm Testing (This key should only be used for testing. DO NOT TRUST.) <helm-testing@helm.sh>\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.) <helm-testing@helm.sh>\n" +
"Using Key With Fingerprint: 5E615389B53CA37F0EE60BD3843BBF981FC18762\n" + "Using Key With Fingerprint: 5E615389B53CA37F0EE60BD3843BBF981FC18762\n" +
"Chart Hash Verified: " "Chart Hash Verified: "

Loading…
Cancel
Save