Skip to content

Commit

Permalink
use default image / workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
CCFenner committed Jun 27, 2018
1 parent 6cb7ada commit 267f5f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/groovy/SnykExecuteTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class SnykExecuteTest extends BasePiperTest {
nullScript.commonPipelineEnvironment.configuration = [
steps: [
snykExecute: [
dockerImage: 'any/image',
dockerWorkspace: '/home/june',
snykCredentialsId: 'myPassword'
]
]
Expand Down Expand Up @@ -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'))
}
Expand Down

0 comments on commit 267f5f6

Please sign in to comment.