You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"FAILURE: Mismatch found between new $function_name logs and snapshot:"
91
+
echo"$diff_output"
92
+
mismatch_found=true
93
+
else
94
+
echo"SUCCESS: New logs for $function_name match snapshot"
95
+
fi
96
+
set -e
97
+
fi
44
98
done
45
99
done
46
100
47
-
# Go back to the repo root
48
-
cd$repo_dir
49
-
50
-
# Download the new CloudWatch logs for each Lambda
101
+
if [ "$mismatch_found"=true ];then
102
+
echo"TEST FAILED: A mismatch between newly generated logs and a snapshot was found above. If this is expected, re-run this script with OVERWRITE=true to generate new snapshots"
103
+
exit 1
104
+
fi
51
105
52
-
# Filter out all logs that aren't metrics and traces and compare to the snapshots in this repo
106
+
echo"TEST SUCCEEDED: No difference found between new logs and snapshots"
0 commit comments