@@ -710,11 +710,10 @@ class K8sServiceImplTest extends Specification {
710
710
def workDir = Path . of(' /build/work/xyz' )
711
711
def credsFile = workDir. resolve(' config.json' )
712
712
def timeout = Duration . ofMinutes(10 )
713
- def spackConfig = new SpackConfig (secretKeyFile : Path . of(' /build/secret/key' ), secretMountPath : ' /secret/mount' )
714
713
def nodeSelector = [key : ' value' ]
715
714
716
715
when :
717
- def job = k8sService. buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, spackConfig , nodeSelector)
716
+ def job = k8sService. buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, null , nodeSelector)
718
717
719
718
then :
720
719
job. spec. backoffLimit == 3
@@ -763,11 +762,10 @@ class K8sServiceImplTest extends Specification {
763
762
def workDir = Path . of(' /build/work/xyz' )
764
763
def credsFile = workDir. resolve(' config.json' )
765
764
def timeout = Duration . ofMinutes(10 )
766
- def spackConfig = new SpackConfig (secretKeyFile : Path . of(' /build/secret/key' ), secretMountPath : ' /secret/mount' )
767
765
def nodeSelector = [key : ' value' ]
768
766
769
767
when :
770
- def job = k8sService. buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, spackConfig , nodeSelector)
768
+ def job = k8sService. buildJobSpec(name, containerImage, args, workDir, credsFile, timeout, null , nodeSelector)
771
769
772
770
then :
773
771
job. spec. template. spec. containers[0 ]. image == containerImage
0 commit comments