mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
Fix test
This commit is contained in:
parent
d1a25f6ae5
commit
74a06ef871
@ -39,11 +39,7 @@ class WhitesourceConfigurationHelper implements Serializable {
|
||||
[name: 'resolveAllDependencies', value: false]
|
||||
]
|
||||
switch (config.scanType) {
|
||||
case 'maven':
|
||||
mapping += [
|
||||
|
||||
]
|
||||
break
|
||||
case 'npm':
|
||||
mapping += [
|
||||
|
||||
@ -72,6 +68,21 @@ class WhitesourceConfigurationHelper implements Serializable {
|
||||
|
||||
]
|
||||
break
|
||||
case 'golang':
|
||||
mapping += [
|
||||
|
||||
]
|
||||
break
|
||||
case 'dlang':
|
||||
mapping += [
|
||||
|
||||
]
|
||||
break
|
||||
default:
|
||||
// maven
|
||||
mapping += [
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
rewriteConfiguration(script, utils, config, mapping, suffix, path, inputFile, targetFile, parsingClosure, serializationClosure)
|
||||
|
@ -125,6 +125,9 @@ class WhitesourceExecuteScanTest extends BasePiperTest {
|
||||
helper.registerAllowedMethod( "fetchVulnerabilities", [List], {
|
||||
return new JsonUtils().parseJsonSerializable("{ \"alerts\": [] }").alerts
|
||||
})
|
||||
helper.registerAllowedMethod( "createProduct", [], {
|
||||
return new JsonUtils().parseJsonSerializable("{ \"productToken\": \"e30132d8e8f04a4c8be6332c75a0ff0580ab326fa7534540ad326e97a74d945b\" }")
|
||||
})
|
||||
helper.registerAllowedMethod( "publishHTML", [Map], {})
|
||||
|
||||
helper.registerAllowedMethod( "getNpmGAV", [String], {return [group: 'com.sap.node', artifact: 'test-node', version: '1.2.3']})
|
||||
|
Loading…
Reference in New Issue
Block a user