Feat v0.5.5 upgrade testing (#35)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m35s
CI/CD / test-sqlite (push) Successful in 2m52s
CI/CD / build-and-deploy (push) Successful in 30s

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #35.
This commit is contained in:
2026-03-30 20:50:53 +00:00
committed by xcaliber
parent 4da25350ac
commit 768f15b3cd
9 changed files with 1446 additions and 14 deletions

View File

@@ -56,8 +56,8 @@ login() {
local resp
resp=$(curl -sf "$host/api/v1/auth/login" \
-H 'Content-Type: application/json' \
-d "{\"username\":\"$user\",\"password\":\"$pass\"}")
echo "$resp" | grep -o '"token":"[^"]*"' | head -1 | cut -d'"' -f4
-d "{\"login\":\"$user\",\"password\":\"$pass\"}")
echo "$resp" | grep -o '"access_token":"[^"]*"' | head -1 | sed 's/.*"access_token":"\([^"]*\)".*/\1/'
}
authed() {
@@ -102,10 +102,10 @@ fi
echo -e "\n${YELLOW}3. Create conversation + send messages${NC}"
# Get alice's user ID
ALICE_ME=$(authed "$ALICE_TOKEN" GET "/api/v1/me" 2>/dev/null || echo "{}")
ALICE_ME=$(authed "$ALICE_TOKEN" GET "/api/v1/profile" 2>/dev/null || echo "{}")
ALICE_ID=$(echo "$ALICE_ME" | grep -o '"id":"[^"]*"' | head -1 | cut -d'"' -f4)
BOB_ME=$(authed "$BOB_TOKEN" GET "/api/v1/me" 2>/dev/null || echo "{}")
BOB_ME=$(authed "$BOB_TOKEN" GET "/api/v1/profile" 2>/dev/null || echo "{}")
BOB_ID=$(echo "$BOB_ME" | grep -o '"id":"[^"]*"' | head -1 | cut -d'"' -f4)
# Create conversation via chat-core API