This commit is contained in:
2025-08-22 14:40:59 -04:00
parent 98a299e7b2
commit 141b1e936d
12 changed files with 1973 additions and 61 deletions

View File

@ -267,10 +267,12 @@ test_token_endpoints() {
-H "X-User-Email: $USER_EMAIL" \
-H "X-User-ID: $USER_ID" \
-d '{
"name": "Test Static Token for Deletion",
"description": "A test static token for deletion test",
"permissions": ["read"],
"expires_at": "2025-12-31T23:59:59Z"
"owner": {
"type": "individual",
"name": "Test Token Owner",
"owner": "test-token@example.com"
},
"permissions": ["repo.read", "repo.write"]
}' 2>/dev/null || echo -e "\n000")
local token_status_code=$(echo "$token_response" | tail -n1)
@ -282,10 +284,12 @@ test_token_endpoints() {
-H "X-User-Email: $USER_EMAIL" \
-H "X-User-ID: $USER_ID" \
-d '{
"name": "Test Static Token",
"description": "A test static token",
"permissions": ["read"],
"expires_at": "2025-12-31T23:59:59Z"
"owner": {
"type": "individual",
"name": "Test Token Owner",
"owner": "test-token@example.com"
},
"permissions": ["repo.read", "repo.write"]
}'
# Extract token_id from the first response for deletion test