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:
parent
714735d74a
commit
989e3667ba
2 changed files with 11 additions and 10 deletions
|
|
@ -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(¶ms, test.directoryProvider))
|
||||
defer server.Close()
|
||||
|
||||
serverURL = server.URL
|
||||
params.URL = server.URL
|
||||
|
||||
hClient := server.Client()
|
||||
client := util.Client(hClient)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue