Add path to kube-hunter job manifest file 08/3308/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Fri, 27 Mar 2020 08:55:58 +0000 (10:55 +0200)
committerJuha Kosonen <juha.kosonen@nokia.com>
Fri, 27 Mar 2020 08:55:58 +0000 (10:55 +0200)
Change-Id: I3977be79d96c6122f571efff72d40495e420e767
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
tests/k8s/kube-hunter/kube-hunter.resource

index 561dea2..4611e75 100644 (file)
@@ -92,7 +92,7 @@ Should Discover No Vulnerabilities
     Should Be True    ${STATUS}
 
 Run Scan Within Pod
     Should Be True    ${STATUS}
 
 Run Scan Within Pod
-    ${result}=        Run Process  kubectl  apply  -f  job.yaml
+    ${result}=        Run Process  kubectl  apply  -f  ${CURDIR}/job.yaml
     Should Be Equal As Integers  ${result.rc}  0
     ${result}=        Run Process  kubectl  wait  --for\=condition\=complete
     ...                            --timeout\=15m  job/kube-hunter
     Should Be Equal As Integers  ${result.rc}  0
     ${result}=        Run Process  kubectl  wait  --for\=condition\=complete
     ...                            --timeout\=15m  job/kube-hunter