Skip to content
Snippets Groups Projects
Commit 9f0827ca authored by Paulina Czempiel's avatar Paulina Czempiel
Browse files

Merge branch 'master' of https://gitlab.syncad.com/hive/tests_api into readme_condenser_api

parents 4bf6c19d ae53a82f
No related branches found
No related tags found
1 merge request!148Readme files to condenser_api calls
Showing
with 656 additions and 5 deletions
[]
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
test_name: Hivemind bridge_api.account_notifications patterns test test_name: Hivemind bridge_api.account_notifications patterns test
marks: marks:
- patterntest - patterntest # old notification score was related to voting power, now it is related to reputation, since vp is not available to HM
includes: includes:
- !include ../../common.yaml - !include ../../common.yaml
......
[
{
"date": "2016-09-15T18:52:09",
"id": 775565,
"msg": "@chitty replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@chitty/re-gtg-re-chitty-re-gtg-re-chitty-a-balanced-voting-system-is-impossible-with-current-witness-s-payouts-20160915t185208490z"
},
{
"date": "2016-09-15T15:04:09",
"id": 773525,
"msg": "@woman-onthe-wing replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@woman-onthe-wing/re-gtg-re-woman-onthe-wing-introduction-post-gold-at-the-end-of-the-rainbow-on-the-emerald-isle-20160915t150410237z"
},
{
"date": "2016-09-15T14:21:09",
"id": 773206,
"msg": "@chitty replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@chitty/re-gtg-re-chitty-a-balanced-voting-system-is-impossible-with-current-witness-s-payouts-20160915t142108544z"
},
{
"date": "2016-09-15T13:24:15",
"id": 772772,
"msg": "@arcange replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@arcange/re-gtg-re-arcange-re-gtg-re-arcange-steemsql-com-a-deep-analysis-of-steemians-gratefulness-20160915t132416244z"
},
{
"date": "2016-09-15T13:06:18",
"id": 772661,
"msg": "@arcange replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@arcange/re-gtg-re-arcange-steemsql-com-a-deep-analysis-of-steemians-gratefulness-20160915t130619700z"
},
{
"date": "2016-09-15T07:54:42",
"id": 771479,
"msg": "@gamer00 replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@gamer00/re-gtg-re-gamer00-hi-i-m-jaro-and-this-is-my-introductory-verification-post-20160915t075443671z"
},
{
"date": "2016-09-10T23:50:48",
"id": 736751,
"msg": "@linkback-bot-v0 mentioned you",
"score": 16,
"type": "mention",
"url": "@linkback-bot-v0/re-artakan-important-info-for-steem-miner-do-not-use-your-steemit-com-account-linkbacks"
},
{
"date": "2016-09-01T14:18:48",
"id": 656983,
"msg": "@lilmisjenn replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@lilmisjenn/re-gtg-re-lilmisjenn-re-gtg-re-lilmisjenn-do-you-have-a-drinking-problem-20160901t141846983z"
},
{
"date": "2016-08-31T17:00:21",
"id": 649359,
"msg": "@itay replied to your post",
"score": 20,
"type": "reply",
"url": "@itay/re-witness-gtg"
},
{
"date": "2016-08-31T02:16:54",
"id": 643761,
"msg": "@melissarhiann replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@melissarhiann/re-gtg-re-melissarhiann-lasting-impression-20160831t021708505z"
},
{
"date": "2016-08-30T17:07:15",
"id": 639308,
"msg": "@djm34 replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@djm34/re-gtg-re-djm34-re-picokernel-bounty-community-bounty-for-open-source-gpu-miner-20160830t170611218z"
},
{
"date": "2016-08-30T16:40:03",
"id": 639076,
"msg": "@complexring replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@complexring/re-gtg-re-djm34-re-picokernel-bounty-community-bounty-for-open-source-gpu-miner-20160830t164004703z"
},
{
"date": "2016-08-29T22:45:33",
"id": 632376,
"msg": "@emsenn replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@emsenn/re-gtg-re-emsenn-introducing-myself-bitcoin-early-adopter-content-producer-and-designer-20160829t224534386z"
},
{
"date": "2016-08-28T11:46:00",
"id": 617302,
"msg": "@lilmisjenn replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@lilmisjenn/re-gtg-re-lilmisjenn-do-you-have-a-drinking-problem-20160828t114559502z"
},
{
"date": "2016-08-27T15:51:15",
"id": 609869,
"msg": "@timcliff replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@timcliff/re-gtg-re-timcliff-re-gtg-missing-rewards-while-mining-20160827t155116406z"
},
{
"date": "2016-08-27T14:13:18",
"id": 609155,
"msg": "@timcliff replied to your post",
"score": 20,
"type": "reply",
"url": "@timcliff/re-gtg-missing-rewards-while-mining-20160827t141319137z"
},
{
"date": "2016-08-27T04:15:48",
"id": 606145,
"msg": "@eternalmoon replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@eternalmoon/re-gtg-re-eternalmoon-this-is-my-about-me-entry-enjoy-20160827t041549494z"
},
{
"date": "2016-08-26T21:16:45",
"id": 603568,
"msg": "@ania replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@ania/re-gtg-re-ania-hello-world-20160826t211629005z"
},
{
"date": "2016-08-26T18:58:27",
"id": 602250,
"msg": "@orcish replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@orcish/re-gtg-re-orcish-my-introduction-20160826t185829224z"
},
{
"date": "2016-08-26T18:20:12",
"id": 601938,
"msg": "@bumblebrii replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@bumblebrii/re-gtg-re-bumblebrii-about-me-20160826t182001959z"
},
{
"date": "2016-08-26T13:29:27",
"id": 599498,
"msg": "@mynomadicyear replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@mynomadicyear/re-gtg-re-mynomadicyear-16-months-out-of-a-suitcase-20160826t132929538z"
},
{
"date": "2016-08-26T11:37:33",
"id": 598726,
"msg": "@seasoul replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@seasoul/re-gtg-re-seasoul-aboutme-20160826t113727450z"
},
{
"date": "2016-08-26T05:27:15",
"id": 596942,
"msg": "@mammasitta replied to your post",
"score": 20,
"type": "reply",
"url": "@mammasitta/re-gtg-witness-gtg-20160826t052714859z"
},
{
"date": "2016-08-22T09:17:18",
"id": 554479,
"msg": "@dr2073 mentioned you",
"score": 20,
"type": "mention",
"url": "@dr2073/witness-thread-dr2073"
},
{
"date": "2016-08-21T12:52:06",
"id": 549751,
"msg": "@gary-smith replied to your post",
"score": 20,
"type": "reply",
"url": "@gary-smith/re-gtg-missing-rewards-while-mining-20160821t125207685z"
},
{
"date": "2016-08-18T03:32:12",
"id": 513921,
"msg": "@abit replied to your post",
"score": 20,
"type": "reply",
"url": "@abit/re-gtg-heavy-duty-witness-node-infrastructure-20160818t033212861z"
},
{
"date": "2016-08-17T12:06:03",
"id": 504899,
"msg": "@okay replied to your post",
"score": 20,
"type": "reply",
"url": "@okay/re-gtg-heavy-duty-witness-node-infrastructure-20160817t120511092z"
},
{
"date": "2016-08-17T07:03:33",
"id": 503001,
"msg": "@mammasitta replied to your post",
"score": 20,
"type": "reply",
"url": "@mammasitta/re-gtg-heavy-duty-witness-node-infrastructure-20160817t070329871z"
},
{
"date": "2016-08-17T04:00:42",
"id": 501902,
"msg": "@dajohns1420 replied to your post",
"score": 20,
"type": "reply",
"url": "@dajohns1420/re-gtg-heavy-duty-witness-node-infrastructure-20160817t040038640z"
},
{
"date": "2016-08-17T02:12:48",
"id": 501132,
"msg": "@dr2073 replied to your post",
"score": 20,
"type": "reply",
"url": "@dr2073/re-gtg-heavy-duty-witness-node-infrastructure-20160817t021249248z"
},
{
"date": "2016-08-16T21:28:48",
"id": 498577,
"msg": "@wackou replied to your post",
"score": 20,
"type": "reply",
"url": "@wackou/re-gtg-heavy-duty-witness-node-infrastructure-20160816t212848539z"
},
{
"date": "2016-08-16T20:31:06",
"id": 497970,
"msg": "@jesta replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@jesta/re-gtg-re-jesta-re-gtg-heavy-duty-witness-node-infrastructure-20160816t203107019z"
},
{
"date": "2016-08-16T20:01:27",
"id": 497676,
"msg": "@brandonp replied to your post",
"score": 20,
"type": "reply",
"url": "@brandonp/re-gtg-heavy-duty-witness-node-infrastructure-20160816t200131779z"
},
{
"date": "2016-08-16T19:31:06",
"id": 497408,
"msg": "@thecryptofiend replied to your post",
"score": 20,
"type": "reply",
"url": "@thecryptofiend/re-gtg-heavy-duty-witness-node-infrastructure-20160816t193106395z"
},
{
"date": "2016-08-16T19:11:06",
"id": 497190,
"msg": "@jesta replied to your post",
"score": 20,
"type": "reply",
"url": "@jesta/re-gtg-heavy-duty-witness-node-infrastructure-20160816t191107309z"
},
{
"date": "2016-08-16T19:08:06",
"id": 497155,
"msg": "@thebluepanda replied to your post",
"score": 20,
"type": "reply",
"url": "@thebluepanda/re-gtg-heavy-duty-witness-node-infrastructure-20160816t190814180z"
},
{
"date": "2016-08-16T18:52:48",
"id": 496997,
"msg": "@someguy123 replied to your post",
"score": 20,
"type": "reply",
"url": "@someguy123/re-gtg-heavy-duty-witness-node-infrastructure-20160816t185248185z"
},
{
"date": "2016-08-16T18:12:21",
"id": 496448,
"msg": "@vishal1 replied to your post",
"score": 20,
"type": "reply",
"url": "@vishal1/re-gtg-heavy-duty-witness-node-infrastructure-20160816t181221888z"
},
{
"date": "2016-08-15T14:16:39",
"id": 482473,
"msg": "@dennygalindo replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@dennygalindo/re-gtg-re-liondani-don-t-remove-curation-rewards-just-stop-them-when-the-post-reach-the-trending-page-20160815t141541480z"
},
{
"date": "2016-08-05T16:12:21",
"id": 361965,
"msg": "@iaco replied to your post",
"score": 20,
"type": "reply",
"url": "@iaco/re-gtg-witness-gtg-20160805t161219379z"
},
{
"date": "2016-08-05T15:45:27",
"id": 361527,
"msg": "@cire81 replied to your post",
"score": 20,
"type": "reply",
"url": "@cire81/re-gtg-witness-gtg-20160805t154528701z"
},
{
"date": "2016-08-03T12:58:57",
"id": 329878,
"msg": "@mefisto replied to your comment",
"score": 20,
"type": "reply_comment",
"url": "@mefisto/re-gtg-re-mefisto-pl-czy-polska-spolecznosc-powinna-miec-swojego-delegata-witness-20160803t125639335z"
},
{
"date": "2016-07-04T18:22:51",
"id": 26494,
"msg": "@edu-lopov replied to your post",
"score": 20,
"type": "reply",
"url": "@edu-lopov/re-gtg-hello-world-20160704t182251522z"
},
{
"date": "2016-07-03T22:45:27",
"id": 25508,
"msg": "@amartinezque replied to your post",
"score": 20,
"type": "reply",
"url": "@amartinezque/re-gtg-hello-world-20160703t224527020z"
},
{
"date": "2016-07-03T17:51:48",
"id": 25333,
"msg": "@trogdor replied to your post",
"score": 20,
"type": "reply",
"url": "@trogdor/re-gtg-hello-world-20160703t175141501z"
}
]
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"abs_rshares": 0,
"active": "1970-01-01T00:00:00",
"active_votes": [],
"allow_curation_rewards": false,
"allow_replies": false,
"allow_votes": false,
"author": "",
"author_reputation": 0,
"author_rewards": 0,
"beneficiaries": [],
"body": "",
"body_length": 0,
"cashout_time": "1970-01-01T00:00:00",
"category": "",
"children": 0,
"children_abs_rshares": 0,
"created": "1970-01-01T00:00:00",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"id": 0,
"json_metadata": "",
"last_payout": "1970-01-01T00:00:00",
"last_update": "1970-01-01T00:00:00",
"max_accepted_payout": "0.000 HBD",
"max_cashout_time": "1970-01-01T00:00:00",
"net_rshares": 0,
"net_votes": 0,
"parent_author": "",
"parent_permlink": "",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 0,
"permlink": "",
"promoted": "0.000 HBD",
"reblogged_by": [],
"replies": [],
"reward_weight": 0,
"root_author": "",
"root_permlink": "",
"root_title": "",
"title": "",
"total_payout_value": "0.000 HBD",
"total_pending_payout_value": "0.000 HBD",
"total_vote_weight": 0,
"url": "",
"vote_rshares": 0
}
}
{ {
"code": -32602, "code": -31999,
"data": "post was not found in cache", "data": "Post jsc/testing-summary was deleted 1 time(s)",
"message": "Invalid parameters" "message": "Invalid parameters"
} }
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
test_name: Hivemind condenser_api.get_content deleted post patterns test test_name: Hivemind condenser_api.get_content deleted post patterns test
marks: marks:
- patterntest - patterntest # bug in old HM and empty post in fat node
- negative - negative
includes: includes:
- !include ../../common.yaml - !include ../../common.yaml
stages: stages:
- name: get_content gtg - name: get_content
request: request:
url: "{service.proto:s}://{service.server:s}:{service.port}/" url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST method: POST
......
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"abs_rshares": 0,
"active": "1970-01-01T00:00:00",
"active_votes": [],
"allow_curation_rewards": false,
"allow_replies": false,
"allow_votes": false,
"author": "",
"author_reputation": 0,
"author_rewards": 0,
"beneficiaries": [],
"body": "",
"body_length": 0,
"cashout_time": "1970-01-01T00:00:00",
"category": "",
"children": 0,
"children_abs_rshares": 0,
"created": "1970-01-01T00:00:00",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"id": 0,
"json_metadata": "",
"last_payout": "1970-01-01T00:00:00",
"last_update": "1970-01-01T00:00:00",
"max_accepted_payout": "0.000 HBD",
"max_cashout_time": "1970-01-01T00:00:00",
"net_rshares": 0,
"net_votes": 0,
"parent_author": "",
"parent_permlink": "",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 0,
"permlink": "",
"promoted": "0.000 HBD",
"reblogged_by": [],
"replies": [],
"reward_weight": 0,
"root_author": "",
"root_permlink": "",
"root_title": "",
"title": "",
"total_payout_value": "0.000 HBD",
"total_pending_payout_value": "0.000 HBD",
"total_vote_weight": 0,
"url": "",
"vote_rshares": 0
}
}
{
"code": -32000,
"data": "IndexError: list index out of range",
"message": "Server error"
}
{
"code": -31999,
"data": "Post ilmam/test was deleted 5 time(s)",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_content deleted post patterns test
marks:
- patterntest # bug in old HM and empty post in fat node; post deleted 5 times within 5mln blocks and not recreated at the end
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_content gtg
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_content"
params: ["ilmam", "test"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "multi_deleted_post"
directory: "condenser_api_negative/get_content"
error_response: true
\ No newline at end of file
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"abs_rshares": 0,
"active": "1970-01-01T00:00:00",
"active_votes": [],
"allow_curation_rewards": false,
"allow_replies": false,
"allow_votes": false,
"author": "",
"author_reputation": 0,
"author_rewards": 0,
"beneficiaries": [],
"body": "",
"body_length": 0,
"cashout_time": "1970-01-01T00:00:00",
"category": "",
"children": 0,
"children_abs_rshares": 0,
"created": "1970-01-01T00:00:00",
"curator_payout_value": "0.000 HBD",
"depth": 0,
"id": 0,
"json_metadata": "",
"last_payout": "1970-01-01T00:00:00",
"last_update": "1970-01-01T00:00:00",
"max_accepted_payout": "0.000 HBD",
"max_cashout_time": "1970-01-01T00:00:00",
"net_rshares": 0,
"net_votes": 0,
"parent_author": "",
"parent_permlink": "",
"pending_payout_value": "0.000 HBD",
"percent_steem_dollars": 0,
"permlink": "",
"promoted": "0.000 HBD",
"reblogged_by": [],
"replies": [],
"reward_weight": 0,
"root_author": "",
"root_permlink": "",
"root_title": "",
"title": "",
"total_payout_value": "0.000 HBD",
"total_pending_payout_value": "0.000 HBD",
"total_vote_weight": 0,
"url": "",
"vote_rshares": 0
}
}
{
"code": -32000,
"data": "IndexError: list index out of range",
"message": "Server error"
}
{
"code": -32602,
"data": "Post jsc/nonexisting-post does not exist",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_content nonexisting post patterns test
marks:
- patterntest # bug in old HM and empty post in fat node
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_content
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_content"
params: ["jsc", "nonexisting-post"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "nonexisting_post"
directory: "condenser_api_negative/get_content"
error_response: true
\ No newline at end of file
{
"id": 1,
"jsonrpc": "2.0",
"result": []
}
{
"id": 1,
"jsonrpc": "2.0",
"result": []
}
{
"code": -31999,
"data": "Post jsc/testing-summary was deleted 1 time(s)",
"message": "Invalid parameters"
}
---
test_name: Hivemind condenser_api.get_content_replies deleted post patterns test
marks:
- patterntest # empty result in old HM and fat node
- negative
includes:
- !include ../../common.yaml
stages:
- name: get_content_replies
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_content_replies"
params: ["jsc", "testing-summary"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "deleted_post"
directory: "condenser_api_negative/get_content_replies"
error_response: true
\ No newline at end of file
{
"id": 1,
"jsonrpc": "2.0",
"result": []
}
{
"id": 1,
"jsonrpc": "2.0",
"result": []
}
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