use default image / workspace

This commit is contained in:
Christopher Fenner
2018-06-27 09:52:32 +02:00
committed by GitHub
parent 6cb7adac59
commit 267f5f6936
+2 -4
View File
@@ -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'))
}