gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
40 stars 23 forks source link

Expand go tests #576

Open koplas opened 2 months ago

koplas commented 2 months ago

This pull request includes initial support to mock CSAF Provider, which allows the writing of extensive tests that can test behaviors that cannot be tested with "simple" unit tests.

bernhardreiter commented 2 months ago

@koplas thanks for suggesting it. Please add information how the OpenPGP v4 key material was created and if it was with our without passphrase.

bernhardreiter commented 2 months ago

@koplas can you also add a first test for sha-handling?

koplas commented 2 months ago

@koplas can you also add a first test for sha-handling?

This requires a more extensive setup; this pull request contains an initial test that is currently not working.

Update: This pull request now contains the first working version of the SHA marking tests.

koplas commented 2 months ago

@koplas thanks for suggesting it. Please add information how the OpenPGP v4 key material was created and if it was with our without passphrase.

I added more information about the key.