@@ -115,7 +115,33 @@ jobs:
115115 # - name: Run gRPC tests
116116 # run: |
117117 # grpcurl -plaintext -proto ./old-faithful-proto/old-faithful-grpc.proto localhost:8999 list
118- - name : Run HTTP tests
119- run : |
120- ./tests/integration/test-http.sh --port 7999 --timeout 30 --log-dir /tmp/test-logs
121- cat /tmp/test-logs/http-test.log
118+ - name : Run HTTP tests
119+ run : |
120+
121+ getTxSig="3qEUUW9fKaZpECvJ87QfZMyVMQjR1GBKnuCDqJMCgxw1sCzrWSU6q5ydEiX1JEJPbQDGaNoxULxmCW6f4mAnNRo2"
122+ getBlock=1
123+ Address="Vote111111111111111111111111111111111111111"
124+
125+ curl localhost:8897 -H "Content-Type: application/json" -d '
126+ {"jsonrpc":"2.0","id":1, "method":"getVersion"}
127+ ' -s | jq -r .result.faithful
128+
129+ curl localhost:8897 -H "Content-Type: application/json" -d '
130+ {"jsonrpc":"2.0","id":1, "method":"getSlot"}
131+ ' -s | jq -r .result
132+
133+ curl localhost:8897 -H "Content-Type: application/json" -d '
134+ {"jsonrpc":"2.0","id":1, "method":"getBlock","params": [$getBlock]}
135+ ' -s | jq -r .result
136+
137+ curl localhost:8897 -H "Content-Type: application/json" -d '
138+ {"jsonrpc":"2.0","id":1, "method":"getBlockHeight"}
139+ ' -s | jq -r .result
140+
141+ curl localhost:8897 -H "Content-Type: application/json" -d '
142+ {"jsonrpc":"2.0","id":1, "method":"getTransaction", params": ["$getTxSig"]}
143+ ' -s | jq -r .result
144+
145+ curl localhost:8897 -H "Content-Type: application/json" -d '
146+ {"jsonrpc":"2.0","id":1, "method":"getSignaturesForAddress", params": ["$Address"]}
147+ ' -s | jq -r .result
0 commit comments