Skip to content
Snippets Groups Projects
Commit 5ed9425a authored by paulina's avatar paulina
Browse files

get_account_history tests part one fixes

parent d3e52719
No related branches found
No related tags found
1 merge request!166account_history_api.get_account_history tests with operation_filter_low (64 operations) on 5mln blocks
Showing
with 780 additions and 16 deletions
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account": "camilla","start": 0,"limit": 0}
params: {"account": "camilla","start": 0,"limit": 1}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 4194304,"start": 9000,"limit": 1000}
params: {"account":"blocktrades","operation_filter_low": 4194304,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 2}
params: {"account":"blocktrades","operation_filter_low": 2, "start": 206145, "limit": 6}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"djangothegod","operation_filter_low": 524288,"start": 9000,"limit": 1000}
params: {"account":"djangothegod","operation_filter_low": 524288,"start": 808,"limit": 4}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 8388608,"start": 9000,"limit": 1000}
params: {"account":"blocktrades","operation_filter_low": 8388608,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"jsc","operation_filter_low": 262144,"start": 9000,"limit": 1000}
params: {"account":"jsc","operation_filter_low": 262144,"start": 3590,"limit": 16}
response:
status_code: 200
verify_response_with:
......
......@@ -2,7 +2,7 @@
test_name: Hived account_history_api get_account_history default values
marks:
- patterntest # when start = -1 limit can be "greater" than start
- patterntest
includes:
- !include ../../common.yaml
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"jsc","operation_filter_low": 131072,"start": 9000,"limit": 1000}
params: {"account":"jsc","operation_filter_low": 131072,"start": 3556,"limit": 6}
response:
status_code: 200
verify_response_with:
......
......@@ -2,7 +2,7 @@
test_name: Hived account_history_api get_account_history only account
marks:
- patterntest
- patterntest # 5mln block
includes:
- !include ../../common.yaml
......
......@@ -2,7 +2,7 @@
test_name: Hived account_history_api get_account_history only limit
marks:
- patterntest
- patterntest # 5mln block
includes:
- !include ../../common.yaml
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account": "camilla","limit": 0}
params: {"account": "camilla","limit": 1}
response:
status_code: 200
verify_response_with:
......
{
"history": [
[
374,
{
"block": 3399063,
"op": {
"type": "request_account_recovery_operation",
"value": {
"account_to_recover": "gtg",
"extensions": [],
"new_owner_authority": {
"account_auths": [],
"key_auths": [
[
"STM8bmDfubWHsCjs9LzPNCQEGevk3iJGRDHH1Mvsc2kboTg6ZT6YM",
1
]
],
"weight_threshold": 1
},
"recovery_account": "steem"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-21T21:41:00",
"trx_id": "f0ffadc77bb4e089e0d12ae754f9690144c71edc",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
375,
{
"block": 3399201,
"op": {
"type": "request_account_recovery_operation",
"value": {
"account_to_recover": "gtg",
"extensions": [],
"new_owner_authority": {
"account_auths": [],
"key_auths": [
[
"STM5RLQ1Jh8Kf56go3xpzoodg4vRsgCeWhANXoEXrYH7bLEwSVyjh",
1
]
],
"weight_threshold": 1
},
"recovery_account": "steem"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-21T21:48:00",
"trx_id": "4292eb5939be2918552c08b8be0adc23ac939002",
"trx_in_block": 2,
"virtual_op": 0
}
]
]
}
---
test_name: Hived account_history_api get_account_history filter to request_account_recovery_operation
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_account_history request_account_recovery_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"gtg","operation_filter_low": 16777216,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "request_account_recovery_operation"
directory: "account_history_api_patterns/get_account_history"
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"aizen24","operation_filter_low": 1048576,"start": 9000,"limit": 1000}
params: {"account":"aizen24","operation_filter_low": 1048576,"start": 251,"limit": 8}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 4}
params: {"account":"blocktrades","operation_filter_low": 4, "start": 206155, "limit": 16}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 8}
params: {"account":"blocktrades","operation_filter_low": 8, "start": 206067, "limit": 18}
response:
status_code: 200
verify_response_with:
......
{
"history": [
[
204351,
{
"block": 4966967,
"op": {
"type": "vote_operation",
"value": {
"author": "lenatramper",
"permlink": "if-the-whole-earth-would-speak-like-adolf-hitler",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T15:59:03",
"trx_id": "ae0f2dce53fb096f46254c20e777e9f5a1e41fa5",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204400,
{
"block": 4967866,
"op": {
"type": "vote_operation",
"value": {
"author": "themanualbot",
"permlink": "steemit-error-your-facebook-account-has-no-associated-email-address-please-add-email-to-your-facebook-account-and-try-again",
"voter": "blocktrades",
"weight": 5000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T16:44:00",
"trx_id": "e7ead21286b2d43ed1ef04e679520b1c3b46eca2",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204405,
{
"block": 4967934,
"op": {
"type": "vote_operation",
"value": {
"author": "iontom",
"permlink": "breaking-news-biotech-giant-bayer-to-acquire-monsanto-in-usd57-billion-deal-largest-takeover-ever-in-german-history",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T16:47:24",
"trx_id": "daf98ec72a76db4e4ca6ebfe4332fd17f56c0506",
"trx_in_block": 4,
"virtual_op": 0
}
],
[
204408,
{
"block": 4967948,
"op": {
"type": "vote_operation",
"value": {
"author": "ketzer85",
"permlink": "space-art",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T16:48:06",
"trx_id": "2f6231bfc375e5672533a587371f23e46065da1f",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204417,
{
"block": 4968079,
"op": {
"type": "vote_operation",
"value": {
"author": "transhuman",
"permlink": "selfies-are-good-for-you-say-scientists",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T16:54:42",
"trx_id": "a2464f66cce446a14a0a7fb19d17edd23fbc0eff",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204437,
{
"block": 4968404,
"op": {
"type": "vote_operation",
"value": {
"author": "funny",
"permlink": "why-are-bitcoin-steem-and-other-cryptocoins-worth-real-money",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T17:11:42",
"trx_id": "606b78845d70904930c81d58cb5e8db6181d4b2b",
"trx_in_block": 4,
"virtual_op": 0
}
],
[
204456,
{
"block": 4968700,
"op": {
"type": "vote_operation",
"value": {
"author": "varda",
"permlink": "le-pagnon-borain-belgian-recipe",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T17:27:18",
"trx_id": "b04ffcb1663c132e41691d66b40915731afbdbae",
"trx_in_block": 5,
"virtual_op": 0
}
],
[
204458,
{
"block": 4968704,
"op": {
"type": "vote_operation",
"value": {
"author": "alex2016",
"permlink": "look-at-my-new-adventures-with-the-camera",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T17:27:30",
"trx_id": "0db4c7f56ef4a96728b8fa69a157f4d64178a1a0",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204489,
{
"block": 4969155,
"op": {
"type": "vote_operation",
"value": {
"author": "ketzer85",
"permlink": "space-art",
"voter": "blocktrades",
"weight": 0
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T17:51:15",
"trx_id": "4cd4c915b526f37108bafb5a1168be3158ea8877",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204558,
{
"block": 4970385,
"op": {
"type": "vote_operation",
"value": {
"author": "patimaker",
"permlink": "the-next-sketch",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T18:55:54",
"trx_id": "023a76ea90753e78359a750c1dd6b3fe1fa9a705",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204562,
{
"block": 4970430,
"op": {
"type": "vote_operation",
"value": {
"author": "zaitsevalesyaa",
"permlink": "the-art-of-origami-flowers",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T18:58:15",
"trx_id": "e28ed63aaf8cf287b10f66cf6078cd1f777c84df",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204568,
{
"block": 4970521,
"op": {
"type": "vote_operation",
"value": {
"author": "mbroek1983",
"permlink": "time-to-sleep",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T19:03:00",
"trx_id": "c9bf5fb9743f473cb6fa43d2e92283d5a6491303",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204573,
{
"block": 4970565,
"op": {
"type": "vote_operation",
"value": {
"author": "markrmorrisjr",
"permlink": "original-fiction-jacked-book-one-of-the-origin-dime-chronicles-episode-9",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T19:05:21",
"trx_id": "cbcb00d7d71f39ca17c91a92ceed37ad3d2bae12",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204588,
{
"block": 4970829,
"op": {
"type": "vote_operation",
"value": {
"author": "despina",
"permlink": "greek-lasagne-makaronia-tou-fournou-pastitsio",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T19:19:18",
"trx_id": "a0948beceea0a23091b89b0d6ebcc6e4d8348767",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
204591,
{
"block": 4970850,
"op": {
"type": "vote_operation",
"value": {
"author": "nicoledphoto",
"permlink": "how-to-create-image-overlay-on-shapes-and-text-photoshop",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T19:20:21",
"trx_id": "760d222bc682dc32494dda64d858265d08a6e823",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
204632,
{
"block": 4971572,
"op": {
"type": "vote_operation",
"value": {
"author": "karisa",
"permlink": "vegetable-soup-puree-recipe-specially-for-steemit",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T19:56:36",
"trx_id": "1edda6935bbc26e2d2100b7bf8eefdf53cc7cf13",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
204641,
{
"block": 4971679,
"op": {
"type": "vote_operation",
"value": {
"author": "fairz",
"permlink": "scooby-doo-and-the-stoner-van-animation",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T20:01:57",
"trx_id": "e593e526d475ab0dc230fb1d00ae004a825a632e",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204661,
{
"block": 4972063,
"op": {
"type": "vote_operation",
"value": {
"author": "whatsup",
"permlink": "hot-chick-pic-of-the-day",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T20:21:09",
"trx_id": "4f59e5983ea0803342a7f842d3817d1479e76c17",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204664,
{
"block": 4972077,
"op": {
"type": "vote_operation",
"value": {
"author": "rebelmeow",
"permlink": "learning-happiness-from-an-old-photograph",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T20:21:51",
"trx_id": "9cdb71a992910e86e8834745d65af1f5226074b1",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204853,
{
"block": 4975801,
"op": {
"type": "vote_operation",
"value": {
"author": "faddat",
"permlink": "go-code-review-request-multithreading-ingestron-the-steem-blockchain-eater",
"voter": "blocktrades",
"weight": 5000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T23:28:15",
"trx_id": "d6e0bb434788c8abc09dc1404d5d86da7009cc1b",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
204856,
{
"block": 4975818,
"op": {
"type": "vote_operation",
"value": {
"author": "sauravrungta",
"permlink": "craziest-laws-from-around-the-world",
"voter": "blocktrades",
"weight": 5000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T23:29:06",
"trx_id": "5fea8e7b6c14df4acc8ae273e144ddb3709b7b5c",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204860,
{
"block": 4975870,
"op": {
"type": "vote_operation",
"value": {
"author": "alexbeyman",
"permlink": "don-t-get-tricked-bro-how-to-recognize-a-publisher-s-clearing-house-scam",
"voter": "blocktrades",
"weight": 5000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T23:31:42",
"trx_id": "904268e10a4bc534ae79c8c5d03f6e1aaf272491",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
204864,
{
"block": 4975908,
"op": {
"type": "vote_operation",
"value": {
"author": "carlidos",
"permlink": "psycho-the-cat-is-a-tv-watching-card-playing-weather-predictor",
"voter": "blocktrades",
"weight": 5000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-14T23:33:36",
"trx_id": "e5b07cc880cc8c5b018f4b9f270afe1f85adf224",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
205025,
{
"block": 4979080,
"op": {
"type": "vote_operation",
"value": {
"author": "dgiors",
"permlink": "spider-macro-looks-larger-than-life",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T02:12:18",
"trx_id": "a81096d7ecfbf68e37361976921ce79ada90cb5f",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
205053,
{
"block": 4979605,
"op": {
"type": "vote_operation",
"value": {
"author": "mcsvi",
"permlink": "black-story-challenge-2-can-you-solve-the-riddle",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T02:38:33",
"trx_id": "7054a1dc368cf538d9e85d9d073c79ae8ad8f1f9",
"trx_in_block": 6,
"virtual_op": 0
}
],
[
205064,
{
"block": 4979763,
"op": {
"type": "vote_operation",
"value": {
"author": "anarchobanker",
"permlink": "truth-is-truth-no-matter-who-says-it",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T02:46:27",
"trx_id": "fe17816ed651f4305abc4567d5b3b5afc3246a94",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
205104,
{
"block": 4980517,
"op": {
"type": "vote_operation",
"value": {
"author": "thedevil",
"permlink": "re-eveningstar92-shit-happens-move-on-nsfw-evening-star-art-20160915t013547486z",
"voter": "blocktrades",
"weight": -10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T03:24:12",
"trx_id": "f4529a0400da6540970b9b55b4ebe0f07013d60f",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
205110,
{
"block": 4980590,
"op": {
"type": "vote_operation",
"value": {
"author": "gardenofeden",
"permlink": "exciting-steemit-announcement-to-build-this-economy-and-support-this-revolutionary-platform-our-online-store-is-now-accepting",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T03:27:51",
"trx_id": "566956258628a97ecf968aedc8a60b10392414f9",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
205121,
{
"block": 4980776,
"op": {
"type": "vote_operation",
"value": {
"author": "bola",
"permlink": "sentence-unscrambler-7",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T03:37:09",
"trx_id": "6921cfcddb78cfab56e1f14b810f5deca52460c6",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
205131,
{
"block": 4980920,
"op": {
"type": "vote_operation",
"value": {
"author": "ilovesteemit",
"permlink": "can-you-see-all-twelve-dots-in-this-image-nope-you-cannot",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T03:44:24",
"trx_id": "b73e47b09280cfe2251ebbf9959c6524e90bb8e4",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
205146,
{
"block": 4981164,
"op": {
"type": "vote_operation",
"value": {
"author": "kingscrown",
"permlink": "zerocash-to-be-added-to-bitmex-trading-in-less-than-24h",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T03:56:36",
"trx_id": "347f18f16b74365c7bb78133ffb38dfd641ded80",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
205154,
{
"block": 4981267,
"op": {
"type": "vote_operation",
"value": {
"author": "markrmorrisjr",
"permlink": "original-fiction-the-anarchist-s-almanac-episode-14",
"voter": "blocktrades",
"weight": 10000
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-09-15T04:01:45",
"trx_id": "e533b8d6d998fd1cea387fed8a8317ae3813e0f5",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
205450,
{
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades","operation_filter_low": 1}
params: {"account":"blocktrades","operation_filter_low": 1,"start": 206151, "limit": 100}
response:
status_code: 200
verify_response_with:
......
......@@ -18,7 +18,7 @@
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"ned","operation_filter_low": 16}
params: {"account":"ned","operation_filter_low": 16, "start": 15452, "limit": 2}
response:
status_code: 200
verify_response_with:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment