Capture timestamp whenever cleanup is triggered in tests (#2054)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2021-06-03 14:31:40 +05:30
committed by GitHub
parent 3a8af97eb9
commit c2f455ec1b
12 changed files with 13 additions and 5 deletions
@@ -9,7 +9,7 @@ env_n=nodend
fn_nd=nodehellond
cleanup() {
echo "Cleaning up..."
log "Cleaning up..."
fission spec destroy || true
popd
}
@@ -32,11 +32,11 @@ fission fn test --name $fn_nd
hnd=$(kubectl -n $FUNCTION_NAMESPACE get deployment -l=functionName=$fn_nd -ojsonpath='{.items[0].spec.template.spec.hostname}')
if [[ "${hnd}" == "foo-bar" ]]; then
echo "Hostname matches for newdeployment function, podspec test 1/2 passsed"
log "Hostname matches for newdeployment function, podspec test 1/2 passsed"
fi
hnp=$(kubectl -n $FUNCTION_NAMESPACE get deployment -l=environmentName=$env_p -ojsonpath='{.items[0].spec.template.spec.hostname}')
if [[ "${hnp}" == "foo-bar" ]]; then
echo "Hostname matches for poolmgr function, podspec test 2/2 passsed"
log "Hostname matches for poolmgr function, podspec test 2/2 passsed"
fi