[JES] Just a couple of bash scripts I've written to make curl calls to the hivemind server. Not complete by any means but can be helpful for testing functionality after code changes
(cherry picked from commit ca73f0826ab0e7ffa3978c23facfb7a4c65327d3)
This commit is contained in:
parent
f01bec6668
commit
d5a7d7fa0c
|
@ -0,0 +1,170 @@
|
|||
#!/bin/bash
|
||||
|
||||
HOST=127.0.0.1:8085
|
||||
|
||||
echo "condenser_api.get_content" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":1, "method":"condenser_api.get_content", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":2, "method":"condenser_api.get_content", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":3, "method":"condenser_api.get_content", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_content_replies" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":4, "method":"condenser_api.get_content_replies", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":5, "method":"condenser_api.get_content_replies", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":6, "method":"condenser_api.get_content_replies", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_trending" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_trending", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":8, "method":"condenser_api.get_discussions_by_trending", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":9, "method":"condenser_api.get_discussions_by_trending", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_hot" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_hot", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_hot", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_hot", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_promoted" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_promoted", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_promoted", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_promoted", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_created" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_created", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_created", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_created", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_blog" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_blog", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_blog", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_blog", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_feed" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_feed", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_feed", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_discussions_by_feed", "params":{"tag":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_discussions_by_comments" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":1, "method":"condenser_api.get_discussions_by_comments", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":1, "method":"condenser_api.get_discussions_by_comments", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":1, "method":"condenser_api.get_discussions_by_comments", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_post_discussions_by_payout" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_post_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_post_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_post_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "condenser_api.get_comment_discussions_by_payout" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_comment_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_comment_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"condenser_api.get_comment_discussions_by_payout", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_profile" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_profile", "params":{"account":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_profile", "params":{"account":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_profile", "params":{"account":"blocktrades"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_trending_topics" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_trending_topics", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_trending_topics", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_trending_topics", "params":{}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_post" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_post", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_post", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_post", "params":{"author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (trending)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"trending"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"trending"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"trending"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (hot)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"hot"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"hot"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"hot"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (created)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"created"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"created"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"created"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (promoted)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"promoted"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"promoted"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"promoted"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (payout)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (payout_comments)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout_comments"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout_comments"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"payout_comments"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_ranked_posts (muted)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"muted"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"muted"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_ranked_posts", "params":{"sort":"muted"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_account_posts (blog)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"blog"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"blog"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"blog"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_account_posts (feed)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"feed"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"feed"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"feed"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bride.get_account_posts (posts)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"posts"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"posts"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"posts"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_account_posts (comments)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"comments"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"comments"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"comments"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_account_posts (replies)" >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"replies"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"replies"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"replies"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo "bridge.get_account_posts (payout) " >> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
{ time curl -s -d '{"jsonrpc":"2.0", "id":7, "method":"bridge.get_account_posts", "params":{"account":"blocktrades", "sort":"payout"}}' $HOST ; } 2>> query_times.log
|
||||
echo "" >> query_times.log
|
||||
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
echo "All done!"
|
|
@ -0,0 +1,299 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "test get_content (REQUIRED params: author, permlink; OPTIONAL params: none)"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_content","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr-purr"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_content","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr-purr"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_content_replies (REQUIRED params: author, permlink; OPTIONAL params: none)"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_content_replies","params":{"author":"blocktrades", "permlink":"should-long-term-hive-proposals-cost-more-to-create"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_content_replies","params":{"author":"blocktrades", "permlink":"should-long-term-hive-proposals-cost-more-to-create"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_trending no params (REQUIRED params: none; OPTIONAL params: start_author, start_permlink, limit, tag, truncate_body, filter_tags)"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_trending author and permlink (REQUIRED params: none; OPTIONAL params: start_author, start_permlink, limit, tag, truncate_body, filter_tags)"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{"start_author":"blocktrades", "start_permlink":"should-long-term-hive-proposals-cost-more-to-create"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{"start_author":"blocktrades", "start_permlink":"should-long-term-hive-proposals-cost-more-to-create"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_trending with tag(REQUIRED params: none; OPTIONAL params: start_author, start_permlink, limit, tag, truncate_body, filter_tags)"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{"tag":"gaming"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_trending","params":{"tag":"gaming"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_hot"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_hot","params":{} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_hot","params":{} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_promoted"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_promoted","params":{} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_promoted","params":{} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_created"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_created","params":{} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_created","params":{} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_blog"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_blog","params":{"tag":"blocktrades"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_blog","params":{"tag":"blocktrades"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_feed"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_feed","params":{"tag":"blocktrades"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_feed","params":{"tag":"blocktrades"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_discussions_by_comments"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_comments","params":{"start_author":"blocktrades"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"condenser_api.get_discussions_by_comments","params":{"start_author":"blocktrades"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test trending"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test hot"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test created"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test promoted"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout_comments"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test muted"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test trending with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "start_author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "start_author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test hot with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test created with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test promoted with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout comments with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test muted with author and permlink"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test trending with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test hot with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test created with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test promoted with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout comments with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":"all"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test muted with author and permlink and tag of all"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":""} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "author":"blocktrades", "permlink":"image-server-cluster-development-and-maintenance", "tag":""} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------
|
||||
echo "RANKED POSTS"
|
||||
echo ""
|
||||
|
||||
echo "test trending with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"trending", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test hot with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"hot", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test created with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"created", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test promoted with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"promoted", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test payout comments with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"payout_comments", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test muted with no author/permlink but with tag"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"muted", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test with garbage params, should fail but not crash out"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"mutead", "limit":5, "tag":"games"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_ranked_posts","params":{"sort":"mutead", "limit":5, "tag":"games"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_post"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_post","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr-purr"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_post","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr-purr"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
||||
|
||||
echo "test get_post with garbage. should fail but not crash out"
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_post","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr"} }' http://steem-3:8085 > old_result
|
||||
curl -s -d '{"jsonrpc":"2.0","id":1,"method":"bridge.get_post","params":{"author":"jes2850", "permlink":"happy-kitty-sleepy-kitty-purr-purr"} }' http://127.0.0.1:8085 > new_result
|
||||
cat old_result | jq . > old_pretty.json
|
||||
cat new_result | jq . > new_pretty.json
|
||||
diff old_pretty.json new_pretty.json
|
Loading…
Reference in New Issue