mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
use default image / workspace
This commit is contained in:
parent
6cb7adac59
commit
267f5f6936
@ -41,8 +41,6 @@ class SnykExecuteTest extends BasePiperTest {
|
||||
nullScript.commonPipelineEnvironment.configuration = [
|
||||
steps: [
|
||||
snykExecute: [
|
||||
dockerImage: 'any/image',
|
||||
dockerWorkspace: '/home/june',
|
||||
snykCredentialsId: 'myPassword'
|
||||
]
|
||||
]
|
||||
@ -89,8 +87,8 @@ class SnykExecuteTest extends BasePiperTest {
|
||||
)
|
||||
|
||||
assertThat(withCredentialsParameters.credentialsId, is('myPassword'))
|
||||
assertThat(jder.dockerParams, hasEntry('dockerImage', 'any/image'))
|
||||
assertThat(jder.dockerParams, hasEntry('dockerWorkspace', '/home/june'))
|
||||
assertThat(jder.dockerParams, hasEntry('dockerImage', 'node:8.11.2-stretch'))
|
||||
assertThat(jder.dockerParams, hasEntry('dockerWorkspace', '/home/node'))
|
||||
assertThat(jder.dockerParams.stashContent, hasItem('buildDescriptor'))
|
||||
assertThat(jder.dockerParams.stashContent, hasItem('opensourceConfiguration'))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user