From 56f887709751f4bb49e1d2b630fb2bb93cf8931c Mon Sep 17 00:00:00 2001 From: ejahnGithub Date: Fri, 30 May 2025 13:31:23 -0700 Subject: [PATCH] update the artifact and bundle for testing --- pkg/cmd/attestation/artifact/file_test.go | 2 +- .../test/data/github_release_artifact.zip | Bin 797 -> 169 bytes .../data/github_release_artifact_invalid.zip | Bin 427 -> 188 bytes .../test/data/github_release_bundle.json | 6 +++--- .../release/verify-asset/verify-asset_test.go | 10 +++++----- pkg/cmd/release/verify/verify_test.go | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/cmd/attestation/artifact/file_test.go b/pkg/cmd/attestation/artifact/file_test.go index ed9e7049a..54768e93e 100644 --- a/pkg/cmd/attestation/artifact/file_test.go +++ b/pkg/cmd/attestation/artifact/file_test.go @@ -12,7 +12,7 @@ func Test_digestLocalFileArtifact_withRealZip(t *testing.T) { artifactPath := test.NormalizeRelativePath("../../attestation/test/data/github_release_artifact.zip") // Calculate expected digest using the same algorithm as the function under test - expectedDigest := "f7165848f9f5ddc578d7adbd1f566a394169385c73bd88bf60df7e759db8e08d" + expectedDigest := "e15b593c6ab8d7725a3cc82226ef816cac6bf9c70eed383bd459295cc65f5ec3" // Call the function under test artifact, err := digestLocalFileArtifact(artifactPath, "sha256") diff --git a/pkg/cmd/attestation/test/data/github_release_artifact.zip b/pkg/cmd/attestation/test/data/github_release_artifact.zip index 934302cd93449f12d999ab9fb7f4e28fb778bcf2..a4d222eb9e344b4038ce0a078f032f652aa823fe 100644 GIT binary patch literal 169 zcmWIWW@h1H0DunGxpHmUab_+LQgP!yV;!$Ppl^V zg!T{lt`BUgTsfF)}>=MvczU_d*!Uc zg0YLAacGlE9-7ND3au*ohz4+9$hmn z-dz&YF*645Ojmm;XPU&M>pCI&I8g%HswgaB4s2h+2|R}Da-%(sjvdivcVFEi`%J3)UDa~SuIEX pFaO-tE&@=E)abT^KmPmd&Bz^H6Fii78V(=gdnjNu(ogtx@^7uo@>&1@ diff --git a/pkg/cmd/attestation/test/data/github_release_artifact_invalid.zip b/pkg/cmd/attestation/test/data/github_release_artifact_invalid.zip index 26b414dbce27d457432613f45174596f7d158eaf..fcdda88fe075d6013f3426d3f40603862d314360 100644 GIT binary patch literal 188 zcmYdH3GilS;bH)R>dg21_eND!{9efHx}}NF^f> M`T=QI5Ql*a02C=HfdBvi literal 427 zcmaKmF%H5o3`O^x!U`)*3u6baQl->Q18E#N&Hw{v2dRjmYME@w@B6<4j7(3AT^9Dy zb-@d=4J`;4R4P;9D}tUxQf}*-OaE{eLWz{f{0{G-XV-zm| z=g-WQwL_IcaX#uJ=+^~KrqSDEN