1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add testdata for individual hash forbidden tests

This commit is contained in:
koplas 2024-12-16 12:57:28 +01:00
parent b1a7620763
commit d38150c6a0
No known key found for this signature in database
3 changed files with 436 additions and 0 deletions

View file

@ -88,6 +88,22 @@ func TestShaMarking(t *testing.T) {
forbidSha256: true,
forbidSha512: true,
},
{
name: "enable sha256 and sha512, forbid sha256",
directoryProvider: false,
enableSha256: true,
enableSha512: true,
forbidSha256: true,
forbidSha512: false,
},
{
name: "enable sha256 and sha512, forbid sha512",
directoryProvider: false,
enableSha256: true,
enableSha512: true,
forbidSha256: false,
forbidSha512: true,
},
{
name: "only deliver sha256",
directoryProvider: false,