Change the criticality of kube-hunter test
[validation.git] / tests / k8s / kube-hunter / kube-hunter.resource
index 561dea2..6651ddc 100644 (file)
@@ -89,10 +89,12 @@ Delete Scan Job
     Should Be Equal As Integers  ${result.rc}  0
 
 Should Discover No Vulnerabilities
-    Should Be True    ${STATUS}
+    Return From Keyword If  ${STATUS}
+    Fail                    Vulnerabilities discovered
+    ...                     non-critical
 
 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