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:
parent
eb73cae888
commit
2ed1ed76fc
@ -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"},
|
||||
}...)
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user