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

Target

Select target project
  • hive/tests_api
1 result
Show changes
Commits on Source (36)
Showing
with 3679 additions and 959 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"
......
[
{
"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
}
]
[
{
"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": [
[
"STM5hB5S4MFqdEnBURe7L62HzL6FWnvy9Pb1R1UcPwCuGnUsfKzFc",
1
]
],
"weight_threshold": 1
},
"balance": "0.000 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-07-12T14:47:00",
"curation_rewards": 20394,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1468334820
},
"guest_bloggers": [],
"id": 17540,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "2016-07-15T05:11:21",
"last_owner_update": "2016-07-15T05:11:21",
"last_post": "2016-09-15T15:07:18",
"last_root_post": "2016-09-14T16:30:24",
"last_vote_time": "2016-09-15T16:00:45",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM5zmYzafDpVkx7FCrxDAMLVqjyKX2ykDNUmtwDLvLtExXWvkovp",
"mined": false,
"name": "biophil",
"next_vesting_withdrawal": "1969-12-31T23:59:59",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5mkaXCu5DT6XsaST1XFyyF842K54GxUAMUVm9wcm7HerBesz3i",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 12171,
"post_count": 752,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM52yaFZPJQMx5wWRZCYgHd69hEE4rkqx7qpq45NyY4Za6w3Jong",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 3729894,
"proxied_vsf_votes": [
0,
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": "10077167197115",
"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": "902.828 HBD",
"sbd_last_interest_payment": "2016-09-13T12:08:48",
"sbd_seconds": "131701413987",
"sbd_seconds_last_update": "2016-09-15T19:28:54",
"tags_usage": [],
"to_withdraw": 0,
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "8128612.587095 VESTS",
"vesting_withdraw_rate": "0.000000 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 9475,
"last_update_time": 1473955245
},
"voting_power": 9475,
"withdraw_routes": 0,
"withdrawn": 0,
"witness_votes": [
"abit",
"anyx",
"blocktrades",
"boatymcboatface",
"delegate.lafona",
"jesta",
"pharesim",
"roadscape",
"smooth.witness",
"steemed",
"steve-walschot"
],
"witnesses_voted_for": 11
},
{
"active": {
"account_auths": [],
"key_auths": [
[
"STM7iT2pWdfDqjX12hhQbjKveALEuWPss1wvrKVWDgm6Ud2ZTjoE4",
1
]
],
"weight_threshold": 1
},
"balance": "0.000 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-04-28T14:35:57",
"curation_rewards": 0,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1461854157
},
"guest_bloggers": [],
"id": 6566,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "1970-01-01T00:00:00",
"last_owner_update": "1970-01-01T00:00:00",
"last_post": "1970-01-01T00:00:00",
"last_root_post": "1970-01-01T00:00:00",
"last_vote_time": "1970-01-01T00:00:00",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM7dz2kPEpL5B3AajPFnb3M3uJwiQ4sdzz6hTgwD8RRm7keT5Bwm",
"mined": false,
"name": "test",
"next_vesting_withdrawal": "1969-12-31T23:59:59",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM6L7mdcoi371ddt2z5hDfRCHXjcLRBz3H8GYKWBgo5T8kiaqWKy",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 0,
"post_count": 0,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5PnVARAgGPTf5PqRnumGUyMJCfV9ti93z72Kct2dAucfLgaMxC",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 0,
"proxied_vsf_votes": [
0,
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": 0,
"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": "0.001 HBD",
"sbd_last_interest_payment": "1970-01-01T00:00:00",
"sbd_seconds": "0",
"sbd_seconds_last_update": "2016-08-11T10:59:45",
"tags_usage": [],
"to_withdraw": 0,
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "146273.695970 VESTS",
"vesting_withdraw_rate": "0.000000 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 10000,
"last_update_time": 1461854157
},
"voting_power": 10000,
"withdraw_routes": 0,
"withdrawn": 0,
"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
},
{
"active": {
"account_auths": [],
"key_auths": [
[
"STM5hB5S4MFqdEnBURe7L62HzL6FWnvy9Pb1R1UcPwCuGnUsfKzFc",
1
]
],
"weight_threshold": 1
},
"balance": "0.000 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-07-12T14:47:00",
"curation_rewards": 20394,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1468334820
},
"guest_bloggers": [],
"id": 17540,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "2016-07-15T05:11:21",
"last_owner_update": "2016-07-15T05:11:21",
"last_post": "2016-09-15T15:07:18",
"last_root_post": "2016-09-14T16:30:24",
"last_vote_time": "2016-09-15T16:00:45",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM5zmYzafDpVkx7FCrxDAMLVqjyKX2ykDNUmtwDLvLtExXWvkovp",
"mined": false,
"name": "biophil",
"next_vesting_withdrawal": "1969-12-31T23:59:59",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5mkaXCu5DT6XsaST1XFyyF842K54GxUAMUVm9wcm7HerBesz3i",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 12171,
"post_count": 752,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM52yaFZPJQMx5wWRZCYgHd69hEE4rkqx7qpq45NyY4Za6w3Jong",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 3729894,
"proxied_vsf_votes": [
0,
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": "10077167197115",
"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": "902.828 HBD",
"sbd_last_interest_payment": "2016-09-13T12:08:48",
"sbd_seconds": "131701413987",
"sbd_seconds_last_update": "2016-09-15T19:28:54",
"tags_usage": [],
"to_withdraw": 0,
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "8128612.587095 VESTS",
"vesting_withdraw_rate": "0.000000 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 9475,
"last_update_time": 1473955245
},
"voting_power": 9475,
"withdraw_routes": 0,
"withdrawn": 0,
"witness_votes": [
"abit",
"anyx",
"blocktrades",
"boatymcboatface",
"delegate.lafona",
"jesta",
"pharesim",
"roadscape",
"smooth.witness",
"steemed",
"steve-walschot"
],
"witnesses_voted_for": 11
},
{
"active": {
"account_auths": [],
"key_auths": [
[
"STM7iT2pWdfDqjX12hhQbjKveALEuWPss1wvrKVWDgm6Ud2ZTjoE4",
1
]
],
"weight_threshold": 1
},
"balance": "0.000 HIVE",
"can_vote": true,
"comment_count": 0,
"created": "2016-04-28T14:35:57",
"curation_rewards": 0,
"delegated_vesting_shares": "0.000000 VESTS",
"downvote_manabar": {
"current_mana": 0,
"last_update_time": 1461854157
},
"guest_bloggers": [],
"id": 6566,
"json_metadata": "",
"last_account_recovery": "1970-01-01T00:00:00",
"last_account_update": "1970-01-01T00:00:00",
"last_owner_update": "1970-01-01T00:00:00",
"last_post": "1970-01-01T00:00:00",
"last_root_post": "1970-01-01T00:00:00",
"last_vote_time": "1970-01-01T00:00:00",
"lifetime_vote_count": 0,
"market_history": [],
"memo_key": "STM7dz2kPEpL5B3AajPFnb3M3uJwiQ4sdzz6hTgwD8RRm7keT5Bwm",
"mined": false,
"name": "test",
"next_vesting_withdrawal": "1969-12-31T23:59:59",
"other_history": [],
"owner": {
"account_auths": [],
"key_auths": [
[
"STM6L7mdcoi371ddt2z5hDfRCHXjcLRBz3H8GYKWBgo5T8kiaqWKy",
1
]
],
"weight_threshold": 1
},
"pending_claimed_accounts": 0,
"post_bandwidth": 0,
"post_count": 0,
"post_history": [],
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5PnVARAgGPTf5PqRnumGUyMJCfV9ti93z72Kct2dAucfLgaMxC",
1
]
],
"weight_threshold": 1
},
"posting_json_metadata": "",
"posting_rewards": 0,
"proxied_vsf_votes": [
0,
0,
0,
0
],
"proxy": "",
"received_vesting_shares": "0.000000 VESTS",
"recovery_account": "steem",
"reputation": 0,
"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": "0.001 HBD",
"sbd_last_interest_payment": "1970-01-01T00:00:00",
"sbd_seconds": "0",
"sbd_seconds_last_update": "2016-08-11T10:59:45",
"tags_usage": [],
"to_withdraw": 0,
"transfer_history": [],
"vesting_balance": "0.000 HIVE",
"vesting_shares": "146273.695970 VESTS",
"vesting_withdraw_rate": "0.000000 VESTS",
"vote_history": [],
"voting_manabar": {
"current_mana": 10000,
"last_update_time": 1461854157
},
"voting_power": 10000,
"withdraw_routes": 0,
"withdrawn": 0,
"witness_votes": [],
"witnesses_voted_for": 0
}
]
[]
\ No newline at end of file
[]
\ No newline at end of file
{
"code": -32602,
"data": "Post otc/ does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test author
marks:
- patterntest # changed behaviour so when either start_author or start_permlink is passed, both have to be passed and point to actual post
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "tags_api.get_comment_discussions_by_payout"
params: ["otc", "", "10", "", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file
{
"code": -32602,
"data": "Post /re-budgiebee-re-mikkolyytinen-re-budgiebee-hey-can-somebody-please-tell-me-how-to-add-pictures-to-blogs-20160911t191955857z does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind tags_api.get_comment_discussions_by_payout patterns test good permlink
marks:
- patterntest # changed behaviour so when either start_author or start_permlink is passed, both have to be passed and point to actual post
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_comment_discussions_by_payout
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "tags_api.get_comment_discussions_by_payout"
params: ["", "re-budgiebee-re-mikkolyytinen-re-budgiebee-hey-can-somebody-please-tell-me-how-to-add-pictures-to-blogs-20160911t191955857z", "5", "pictures", 0]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "good_permlink"
directory: "tags_api_negative/get_comment_discussions_by_payout"
error_response: true
\ No newline at end of file