Re-introducing custom template info attribute support within the new struct

* Satisfying the linter

* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
dev
forgedhallpass 2021-08-18 19:54:02 +03:00
parent 7b807cbe88
commit 836740a81f
1 changed files with 3 additions and 3 deletions

View File

@ -13,11 +13,11 @@ import (
func TestToMarkdownTableString(t *testing.T) {
info := model.Info{
Name: "Test Template Name",
Authors: model.StringSlice{[]string{"forgedhallpass", "ice3man"}},
Authors: model.StringSlice{Value: []string{"forgedhallpass", "ice3man"}},
Description: "Test description",
SeverityHolder: severity.SeverityHolder{Severity: severity.High},
Tags: model.StringSlice{[]string{"cve", "misc"}},
Reference: model.StringSlice{"reference1"},
Tags: model.StringSlice{Value: []string{"cve", "misc"}},
Reference: model.StringSlice{Value: "reference1"},
CustomAttributes: map[string]string{
"customDynamicKey1": "customDynamicValue1",
"customDynamicKey2": "customDynamicValue2",