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

Fix provider-metadata.json

This commit is contained in:
koplas 2024-09-16 20:23:22 +02:00
parent 714735d74a
commit 989e3667ba
2 changed files with 11 additions and 10 deletions

View file

@ -23,9 +23,9 @@ import (
)
type ProviderParams struct {
url string
enableSha256 bool
enableSha512 bool
URL string
EnableSha256 bool
EnableSha512 bool
}
func ProviderHandler(params *ProviderParams, directoryProvider bool) http.HandlerFunc {
@ -88,14 +88,15 @@ func TestShaMarking(t *testing.T) {
tt.Parallel()
serverURL := ""
params := ProviderParams{
url: "",
enableSha256: true,
enableSha512: true,
URL: "",
EnableSha256: true,
EnableSha512: true,
}
server := httptest.NewTLSServer(ProviderHandler(&params, test.directoryProvider))
defer server.Close()
serverURL = server.URL
params.URL = server.URL
hClient := server.Client()
client := util.Client(hClient)