mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add testdata for individual hash forbidden tests
This commit is contained in:
parent
b1a7620763
commit
d38150c6a0
3 changed files with 436 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue