forked from Manuel1234477/Stellar-Micro-Donation-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-api-wallet-transactions.sh
More file actions
executable file
·25 lines (20 loc) · 968 Bytes
/
test-api-wallet-transactions.sh
File metadata and controls
executable file
·25 lines (20 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
echo "Testing Wallet Transactions API Endpoint"
echo "=========================================="
echo ""
# Test 1: Get transactions for user 1 (sender)
echo "Test 1: Get transactions for wallet GBRPYHIL2CI3WHZDTOOQFC6EB4KJJGUJMUC5XNODMZTQYBB5XYZXYUU"
curl -s http://localhost:3000/wallets/GBRPYHIL2CI3WHZDTOOQFC6EB4KJJGUJMUC5XNODMZTQYBB5XYZXYUU/transactions | json_pp
echo ""
echo ""
# Test 2: Get transactions for user 3 (receiver)
echo "Test 2: Get transactions for wallet GCZST3XVCDTUJ76ZAV2HA72KYQM4YQQ5DUJTHIGQ5ESE3JNEZUAEUA7X"
curl -s http://localhost:3000/wallets/GCZST3XVCDTUJ76ZAV2HA72KYQM4YQQ5DUJTHIGQ5ESE3JNEZUAEUA7X/transactions | json_pp
echo ""
echo ""
# Test 3: Non-existent wallet (should return empty array)
echo "Test 3: Get transactions for non-existent wallet"
curl -s http://localhost:3000/wallets/GFAKEWALLETADDRESSNOTINDB123456789012345678901234567890/transactions | json_pp
echo ""
echo ""
echo "✓ All API tests completed!"