Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2mln_blocks_test
  • abw_rshares_experiment
  • bridge_get_account_posts
  • bw_ci_validating_test
  • bw_list_comments_by_permlink_opt_patterns
  • dk-5e6-patterns
  • dk-database-api-tests-001
  • dk-diff-log
  • dk-fix-order-in-some-tests
  • dk-follow-item-overwrite-fix
  • dk-follow-refactor
  • dk-functional-example
  • dk-list-votes-pre24
  • dk-mock-follow-tests
  • dk-mock-follow-tests-2
  • dk-mock-vops-tests
  • dk-pytest-benchmark
  • follow_api_tests
  • get_accounts
  • get_blog_entries
  • get_ranked_posts
  • issue_37_trend_and_hot
  • jsalyers-more-blacklist-updates
  • klesniak-api-tests-pyresttests
  • km_hafah_MR15
  • km_issue_151_revert
  • kmochocki/add-slow-call
  • kmochocki/ci
  • kmochocki/hivemind-testing
  • kudmich/prepare_tavern_tests_to_working_with_postgrest
  • master
  • mi_correct_notif_cache_update
  • mi_mention_date_changed
  • mi_notifications_in_cache
  • mi_test_for_bridge_get_ranked_posts
  • msochacki_tests
  • mt-47
  • mt-find-list-votes
  • mt-further-pids-refactoring
  • mt-further-pids-refactoring-old
  • mt-get-pids-fix
  • mt-get-profile-new-patterns
  • mt-grayed
  • mt-lack-of-post-forces-empty-pattern
  • mt-list-comments-fix
  • mt-main-unit
  • mt-pids-performance-refactoring
  • mz-hivemind-benchmark-parser
  • pczempiel_community
  • pczempiel_date_changes
  • pczempiel_new_tests
  • pmaniora_account_notifications_tests
  • pmaniora_communities_sql
  • pmaniora_community_fixes
  • pmaniora_fullsync_slow_calls
  • pmaniora_new_tests
  • request-execution-time
  • revert-36610d67
  • tmp
59 results

Target

Select target project
  • hive/tests_api
1 result
Select Git revision
  • 2mln_blocks_test
  • abw_rshares_experiment
  • bridge_get_account_posts
  • bw_ci_validating_test
  • bw_list_comments_by_permlink_opt_patterns
  • dk-5e6-patterns
  • dk-database-api-tests-001
  • dk-diff-log
  • dk-fix-order-in-some-tests
  • dk-follow-item-overwrite-fix
  • dk-follow-refactor
  • dk-functional-example
  • dk-list-votes-pre24
  • dk-mock-follow-tests
  • dk-mock-follow-tests-2
  • dk-mock-vops-tests
  • dk-pytest-benchmark
  • follow_api_tests
  • get_accounts
  • get_blog_entries
  • get_ranked_posts
  • issue_37_trend_and_hot
  • jsalyers-more-blacklist-updates
  • klesniak-api-tests-pyresttests
  • km_hafah_MR15
  • km_issue_151_revert
  • kmochocki/add-slow-call
  • kmochocki/ci
  • kmochocki/hivemind-testing
  • kudmich/prepare_tavern_tests_to_working_with_postgrest
  • master
  • mi_correct_notif_cache_update
  • mi_mention_date_changed
  • mi_notifications_in_cache
  • mi_test_for_bridge_get_ranked_posts
  • msochacki_tests
  • mt-47
  • mt-find-list-votes
  • mt-further-pids-refactoring
  • mt-further-pids-refactoring-old
  • mt-get-pids-fix
  • mt-get-profile-new-patterns
  • mt-grayed
  • mt-lack-of-post-forces-empty-pattern
  • mt-list-comments-fix
  • mt-main-unit
  • mt-pids-performance-refactoring
  • mz-hivemind-benchmark-parser
  • pczempiel_community
  • pczempiel_date_changes
  • pczempiel_new_tests
  • pmaniora_account_notifications_tests
  • pmaniora_communities_sql
  • pmaniora_community_fixes
  • pmaniora_fullsync_slow_calls
  • pmaniora_new_tests
  • request-execution-time
  • revert-36610d67
  • tmp
59 results
Show changes
Commits on Source (64)
Showing
with 91 additions and 301 deletions
......@@ -9,7 +9,6 @@
- get_account_references
- get_account_reputations
- get_account_votes
- get_accounts
- get_active_votes
- get_active_witnesses
- get_block
......@@ -233,16 +232,6 @@ Windows call:
Results:
`"ApiError: get_account_votes is no longer supported, for details see https://steemit.com/steemit/@steemitdev/additional-public-api-change"
#### get_accounts
Linux call:
`python3 get_accounts.py https://api.steem.house https://api.steemit.com ./ steemit alice steempeak
Windows call:
`python get_accounts.py https://api.steemit.com https://api.steem.house ./ steemit alice steempeak
Results:
Works fine.
#### get_active_votes
Linux call:
`python3 get_active_votes.py https://api.steem.house https://api.steemit.com ./ drakos open-letter-to-justin-sun-and-the-steem-community
......
#!/usr/bin/python3
import os
import sys
sys.path.append(os.path.dirname(__file__) + "/../../../")
import json
from testbase import SimpleJsonTest
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("test_node", type = str, help = "IP address of test node")
parser.add_argument("ref_node", type = str, help = "IP address of reference node")
parser.add_argument("work_dir", type = str, help = "Work dir")
parser.add_argument("account", type = str, nargs='+', help = "Account name")
args = parser.parse_args()
tester = SimpleJsonTest(args.test_node, args.ref_node, args.work_dir)
print("Test node: {}".format(args.test_node))
print("Ref node: {}".format(args.ref_node))
print("Work dir: {}".format(args.work_dir))
print("account: {}".format(args.account))
test_args = {
"jsonrpc": "2.0",
"id": 1,
"method": "condenser_api.get_accounts",
"params": [
args.account
]
}
if tester.compare_results(test_args, True):
exit(0)
exit(1)
......@@ -21,10 +21,6 @@ tests = [
"method": "condenser_api.get_trending_tags",
"params": ["", 20]
},
{
"method": "condenser_api.get_accounts",
"params": [["initminer","temp"]]
},
{
"method": "condenser_api.get_active_votes",
"params": ["temp", "test1"]
......
......@@ -175,14 +175,6 @@
- args: '{"author":"steemit","permlink":"firstpost"}'
- <<: *base_test
# Method not found
# - test:
# - name: "get_accounts"
# - variable_binds:
# - method: "get_accounts"
# - args: '[["steemit"]]'
# - <<: *base_test
# No longer supported
# - test:
# - name: "get_account_votes"
......
......@@ -177,14 +177,6 @@
- args: '{"author":"steemit","permlink":"firstpost"}'
- <<: *base_test
# Method not found
# - test:
# - name: "get_accounts"
# - variable_binds:
# - method: "get_accounts"
# - args: '[["steemit"]]'
# - <<: *base_test
# No longer supported
# - test:
# - name: "get_account_votes"
......
......@@ -177,13 +177,6 @@
- args: '{"author":"steemit","permlink":"firstpost"}'
- <<: *base_benchmark
- benchmark:
- name: "get_accounts"
- variable_binds:
- method: "get_accounts"
- args: '[["steemit"]]'
- <<: *base_benchmark
# No longer supported
# - benchmark:
# - name: "get_account_votes"
......
......@@ -189,13 +189,6 @@
- args: '{"author":"steemit","permlink":"firstpost"}'
- <<: *base_test
- test:
- name: "get_accounts"
- variable_binds:
- method: "get_accounts"
- args: '[["steemit"]]'
- <<: *base_test
# No longer supported
# - test:
# - name: "get_account_votes"
......
---
test_name: Hivemind condenser_api.get_followers wrong_type patterns test
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_followers wrong type
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_followers"
params: ["brightnesssoulds",null,"wrong_type",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "wrong_type"
directory: "condenser_api_negative/get_followers"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_following over limit test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_following last
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_following"
params: ["gtg","blocktrades","blog",1001]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "over_limit"
directory: "condenser_api_negative/get_following"
error_response: true
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_following wrong_type patterns test
marks:
- patterntest
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_following wrong_type
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_following"
params: ["brightnesssoulds",null,"wrong_type",1000]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "wrong_type"
directory: "condenser_api_negative/get_following"
error_response: true
\ No newline at end of file
[
{
"active": {
"account_auths": [],
"key_auths": [
[
"STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
1
]
],
"weight_threshold": 1
},
"balance": "4778859.891 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-03-24T17:00:21",
"curation_rewards": 0,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1458838821
},
"guest_bloggers": [],
"id": 28,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "2016-07-15T13:56:18",
"last_owner_update": "2016-07-15T13:56:18",
"last_post": "2016-03-30T18:30:18",
"last_root_post": "2016-03-30T18:30:18",
"last_vote_time": "1970-01-01T00:00:00",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
"mined": true,
"name": "steemit",
"next_vesting_withdrawal": "2016-09-19T00:37:21",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM7kyb6WK6Sg9Eu4uu7WGqjYdqJzdBeKEWVDaDEKsgvhvESJZ1vM",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 0,
"post_count": 1,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 3548,
"proxied_vsf_votes": [
"23077504682",
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": "12944616889",
"reset_account": "null",
"reward_sbd_balance": "0.000 HBD",
"reward_steem_balance": "0.000 HIVE",
"reward_vesting_balance": "0.000000 VESTS",
"reward_vesting_steem": "0.000 HIVE",
"savings_balance": "0.000 HIVE",
"savings_sbd_balance": "0.000 HBD",
"savings_sbd_last_interest_payment": "1970-01-01T00:00:00",
"savings_sbd_seconds": "0",
"savings_sbd_seconds_last_update": "1970-01-01T00:00:00",
"savings_withdraw_requests": 0,
"sbd_balance": "70337.438 HBD",
"sbd_last_interest_payment": "2016-09-12T19:16:48",
"sbd_seconds": "8923940509188",
"sbd_seconds_last_update": "2016-09-14T11:25:21",
"tags_usage": [],
"to_withdraw": "257910734535923078",
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "225671901920.188893 VESTS",
"vesting_withdraw_rate": "2479910908.999260 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 10000,
"last_update_time": 1458838821
},
"voting_power": 10000,
"withdraw_routes": 0,
"withdrawn": "32238841816990380",
"witness_votes": [],
"witnesses_voted_for": 0
}
]
[
{
"active": {
"account_auths": [],
"key_auths": [
[
"STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
1
]
],
"weight_threshold": 1
},
"balance": "4778859.891 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-03-24T17:00:21",
"curation_rewards": 0,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1458838821
},
"guest_bloggers": [],
"id": 28,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "2016-07-15T13:56:18",
"last_owner_update": "2016-07-15T13:56:18",
"last_post": "2016-03-30T18:30:18",
"last_root_post": "2016-03-30T18:30:18",
"last_vote_time": "1970-01-01T00:00:00",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
"mined": true,
"name": "steemit",
"next_vesting_withdrawal": "2016-09-19T00:37:21",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM7kyb6WK6Sg9Eu4uu7WGqjYdqJzdBeKEWVDaDEKsgvhvESJZ1vM",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 0,
"post_count": 1,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 3548,
"proxied_vsf_votes": [
"23077504682",
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": "12944616889",
"reset_account": "null",
"reward_sbd_balance": "0.000 HBD",
"reward_steem_balance": "0.000 HIVE",
"reward_vesting_balance": "0.000000 VESTS",
"reward_vesting_steem": "0.000 HIVE",
"savings_balance": "0.000 HIVE",
"savings_sbd_balance": "0.000 HBD",
"savings_sbd_last_interest_payment": "1970-01-01T00:00:00",
"savings_sbd_seconds": "0",
"savings_sbd_seconds_last_update": "1970-01-01T00:00:00",
"savings_withdraw_requests": 0,
"sbd_balance": "70337.438 HBD",
"sbd_last_interest_payment": "2016-09-12T19:16:48",
"sbd_seconds": "8923940509188",
"sbd_seconds_last_update": "2016-09-14T11:25:21",
"tags_usage": [],
"to_withdraw": "257910734535923078",
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "225671901920.188893 VESTS",
"vesting_withdraw_rate": "2479910908.999260 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 10000,
"last_update_time": 1458838821
},
"voting_power": 10000,
"withdraw_routes": 0,
"withdrawn": "32238841816990380",
"witness_votes": [],
"witnesses_voted_for": 0
}
]
......@@ -621,7 +621,7 @@
"created": "2016-03-30T18:30:18",
"curator_payout_value": "0.756 HBD",
"depth": 0,
"json_metadata": "{}",
"json_metadata": "",
"last_payout": "2016-08-24T19:59:42",
"last_update": "2016-03-30T18:30:18",
"max_accepted_payout": "1000000.000 HBD",
......
......@@ -621,7 +621,7 @@
"created": "2016-03-30T18:30:18",
"curator_payout_value": "0.756 HBD",
"depth": 0,
"json_metadata": "{}",
"json_metadata": "",
"last_payout": "2016-08-24T19:59:42",
"last_update": "2016-03-30T18:30:18",
"max_accepted_payout": "1000000.000 HBD",
......