Capture timestamp whenever cleanup is triggered in tests (#2054)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user