Skip to content

Commit

Permalink
Fix failing tests [release]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Sep 22, 2024
1 parent 08d66aa commit fc0b24e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,10 @@ class K8sServiceImplTest extends Specification {
def workDir = Path.of('/build/work/xyz')
def credsFile = workDir.resolve('config.json')
def timeout = Duration.ofMinutes(10)
def spackConfig = new SpackConfig(secretKeyFile: Path.of('/build/secret/key'), secretMountPath: '/secret/mount')
def nodeSelector = [key: 'value']

when:
def job = k8sService.buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, spackConfig, nodeSelector)
def job = k8sService.buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, null, nodeSelector)

then:
job.spec.backoffLimit == 3
Expand Down Expand Up @@ -763,11 +762,10 @@ class K8sServiceImplTest extends Specification {
def workDir = Path.of('/build/work/xyz')
def credsFile = workDir.resolve('config.json')
def timeout = Duration.ofMinutes(10)
def spackConfig = new SpackConfig(secretKeyFile: Path.of('/build/secret/key'), secretMountPath: '/secret/mount')
def nodeSelector = [key: 'value']

when:
def job = k8sService.buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, spackConfig, nodeSelector)
def job = k8sService.buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, null, nodeSelector)

then:
job.spec.template.spec.containers[0].image == containerImage
Expand Down

0 comments on commit fc0b24e

Please sign in to comment.