mirror of https://github.com/daffainfo/nuclei.git
parent
e9f77d7046
commit
456544d5be
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
type Info struct {
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Authors StringSlice `json:"authors" yaml:"authors"`
|
||||
Authors StringSlice `json:"author" yaml:"author"`
|
||||
Tags StringSlice `json:"tags" yaml:"tags"`
|
||||
Description string `json:"description" yaml:"description"`
|
||||
Reference StringSlice `json:"reference" yaml:"reference"`
|
||||
|
|
|
@ -21,6 +21,6 @@ func TestInfoJsonMarshal(t *testing.T) {
|
|||
result, err := json.Marshal(&info)
|
||||
assert.Nil(t, err)
|
||||
|
||||
expected := `{"name":"Test Template Name","authors":["forgedhallpass","ice3man"],"tags":["cve","misc"],"description":"Test description","reference":"reference1","severity":"high"}`
|
||||
expected := `{"name":"Test Template Name","author":["forgedhallpass","ice3man"],"tags":["cve","misc"],"description":"Test description","reference":"reference1","severity":"high"}`
|
||||
assert.Equal(t, expected, string(result))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue