*** Keywords ***
Open Connection And Log In
Open Connection ${HOST}
- Login With Public Key ${USERNAME} ${SSH_KEYFILE}
+ Run Keyword IF '${SSH_KEYFILE}' != 'None' Login With Public Key ${USERNAME} ${SSH_KEYFILE} ELSE IF '${PASSWORD}' != 'None' Login ${USERNAME} ${PASSWORD} ELSE FAIL
Get Cluster Address
${result}= Run Process kubectl config view --minify
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 ${CURDIR}/job.yaml