package runner import ( "testing" "github.com/stretchr/testify/assert" "github.com/projectdiscovery/nuclei/v2/pkg/model/types/severity" "github.com/projectdiscovery/nuclei/v2/pkg/types" ) func Test_createReportingOptions(t *testing.T) { var options types.Options options.ReportingConfig = "../../../integration_tests/test-issue-tracker-config1.yaml" resultOptions, err := createReportingOptions(&options) assert.Nil(t, err) assert.Equal(t, resultOptions.AllowList.Severities, severity.Severities{severity.High, severity.Critical}) assert.Equal(t, resultOptions.DenyList.Severities, severity.Severities{severity.Low}) options.ReportingConfig = "../../../integration_tests/test-issue-tracker-config2.yaml" resultOptions2, err := createReportingOptions(&options) assert.Nil(t, err) assert.Equal(t, resultOptions2.AllowList.Severities, resultOptions.AllowList.Severities) assert.Equal(t, resultOptions2.DenyList.Severities, resultOptions.DenyList.Severities) }