Skip to content

Commit 3d193ca

Browse files
committed
test: Verify db is empty before triggering the e2e workflow
1 parent b504b4d commit 3d193ca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/test-e2e.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ while ! obelisk component list 2>/dev/null; do
107107
sleep 1
108108
done
109109

110+
# Make sure this repo has no stars
111+
JSON=$(curl --fail "http://127.0.0.1:9090?repo=${STAR_ACCOUNT}/${STAR_REPO}&ordering=asc&limit=1")
112+
if [[ "$JSON" != "[]" ]]; then
113+
echo "The repo ${STAR_ACCOUNT}/${STAR_REPO} already has star gazers"
114+
exit 1
115+
fi
116+
110117
PAYLOAD='{
111118
"action": "created",
112119
"sender": {

0 commit comments

Comments
 (0)