From 35e817ceb49f1a595d8a6f7cf389a80a6fff3fd4 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Tue, 14 Jul 2020 00:48:35 +0300 Subject: [PATCH] fix(gcb): Don't use uuidgen as it doesn't exist on GCB --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 9bb2e90..12c7562 100755 --- a/test.sh +++ b/test.sh @@ -74,7 +74,7 @@ DSN_PIECES=(`echo $SENTRY_DSN | sed -ne 's|^https\?://\([0-9a-z]\+\)@[^/]\+/\([0 SENTRY_KEY=${DSN_PIECES[0]} PROJECT_ID=${DSN_PIECES[1]} -TEST_EVENT_ID=$(uuidgen -r | tr -d '-') +TEST_EVENT_ID=$(export LC_ALL=C; head /dev/urandom | tr -dc "a-f0-9" | head -c 32) # Thanks @untitaker - https://forum.sentry.io/t/how-can-i-post-with-curl-a-sentry-event-which-authentication-credentials/4759/2?u=byk curl --data '{"event_id": "'"$TEST_EVENT_ID"'","level":"error","message":"a failure","extra":{"object":"42"} }' \ -H 'Content-Type: application/json' \