mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 23:05:26 +00:00
* add template sign/parse methods * export installer package * add readme * consistent implementation of writefailure * fix lint error
20 lines
657 B
Go
20 lines
657 B
Go
package installer
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/catalog/config"
|
|
"github.com/projectdiscovery/utils/generic"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestVersionCheck(t *testing.T) {
|
|
err := NucleiVersionCheck()
|
|
require.Nil(t, err)
|
|
cfg := config.DefaultConfig
|
|
if generic.EqualsAny("", cfg.LatestNucleiIgnoreHash, cfg.LatestNucleiVersion, cfg.LatestNucleiTemplatesVersion) {
|
|
// all above values cannot be empty
|
|
t.Errorf("something went wrong got empty response nuclei-version=%v templates-version=%v ignore-hash=%v", cfg.LatestNucleiVersion, cfg.LatestNucleiTemplatesVersion, cfg.LatestNucleiIgnoreHash)
|
|
}
|
|
}
|