1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

whitesourceExecuteScan : add log level trace (#3745)

* add log level trace

* add log level files trace

* add tests
This commit is contained in:
Giridhar Shenoy 2022-04-22 13:19:49 +02:00 committed by GitHub
parent eb73cae888
commit 2ed1ed76fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -106,8 +106,8 @@ func (c *ConfigOptions) addGeneralDefaults(config *ScanOptions, utils Utils, pro
if config.Verbose {
cOptions = append(cOptions, []ConfigOption{
{Name: "log.level", Value: "debug"},
{Name: "log.files.level", Value: "debug"},
{Name: "log.level", Value: "trace"},
{Name: "log.files.level", Value: "trace"},
}...)
}

View File

@ -149,9 +149,9 @@ func TestAddGeneralDefaults(t *testing.T) {
}
testConfig.addGeneralDefaults(&whitesourceConfig, utilsMock, "")
assert.Equal(t, "log.level", testConfig[2].Name)
assert.Equal(t, "debug", testConfig[2].Value)
assert.Equal(t, "trace", testConfig[2].Value)
assert.Equal(t, "log.files.level", testConfig[3].Name)
assert.Equal(t, "debug", testConfig[3].Value)
assert.Equal(t, "trace", testConfig[3].Value)
})
t.Run("includes and excludes", func(t *testing.T) {